Accelerates getting values from properties.
Namespace: Dapfor.Net.DataAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public interface IGetAccelerator |
Visual Basic |
---|
Public Interface IGetAccelerator |
Visual C++ |
---|
public interface class IGetAccelerator |
F# |
---|
type IGetAccelerator = interface end |
Remarks
Examples
| Copy |
---|
public class TestClass : IGetAccelerator
{
private int intValue;
private double doubleValue;
public int IntValue
{
get { return intValue; }
set { intValue = value; }
}
public double DoubleValue
{
get { return doubleValue; }
set { doubleValue = value; }
}
public IGetter GetGetter(IDataField field)
{
switch (field.Id)
{
case "IntValue":
return new Getter<int>(delegate { return IntValue; });
case "DoubleValue":
return new ValueGetter(DoubleValue);
}
return null;
}
} |
See Also