Gets a value of a data object property.
Namespace: Dapfor.Net.DataAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public interface IGetter |
Visual Basic |
---|
Public Interface IGetter |
Visual C++ |
---|
public interface class IGetter |
F# |
---|
type IGetter = 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(string fieldId)
{
switch(fieldId)
{
case "IntValue":
return new Getter<int>(delegate { return IntValue; });
case "DoubleValue":
return new ValueGetter(DoubleValue);
}
return null;
}
}
public void HowToUseExample(Grid grid)
{
grid.Rows.Add(new TestClass());
} |
See Also