Property | Type | Description | |
---|---|---|---|
InitializeFromModelPath | void | ||
InitializeFromTypeAndPath | bool | ||
ModelSource | System |
Method | Description | |
---|---|---|
GetFormattedValue ( ModelInstance root ) : string |
Gets the formatted value of the property for the current source path.
|
|
GetFormattedValue ( ModelInstance root, object &rawValue ) : string |
Gets the formatted value of the property for the current source path.
|
|
GetFormattedValue ( ModelInstance root, string format ) : string |
Gets the formatted value of the property for the current source path.
|
|
GetFormattedValue ( ModelInstance root, string format, IFormatProvider provider, object &rawValue ) : string |
Gets the formatted value of the property for the current source path.
|
|
GetFormattedValue ( ModelInstance root, string format, object &rawValue ) : string |
Gets the formatted value of the property for the current source path.
|
|
GetList ( ModelInstance root ) : ModelInstanceList |
Gets the ModelInstanceList defined by specified source path.
|
|
GetModelProperties ( ModelType root ) : IEnumerable |
Walks the steps of the ModelSource
|
|
GetModelProperty ( ModelType root ) : ModelProperty |
Fetches a ModelProperty based on the root ModelType
|
|
GetReference ( ModelInstance root ) : ModelInstance |
Gets the ModelInstance defined by specified source path.
|
|
GetSource ( ModelInstance root ) : IModelPropertySource | ||
GetSource ( ModelInstance root, Func |
||
GetValue ( ModelInstance root ) : object |
Gets the underlying value of the property for the current source path.
|
|
HasValue ( ModelInstance root ) : bool |
Determines whether the value of the property along the source path has a value or not. If any value along the source path is null, false will be returned. If the source property is a list, false will be returned if the list is empty. |
|
ModelSource ( |
Creates a new ModelSource for the specified root type and path.
|
|
ModelSource ( ModelType rootType, string path ) : System |
Creates a new ModelSource for the specified root type and path.
|
|
SetValue ( ModelInstance root, object value ) : bool | ||
SetValue ( ModelInstance root, object value, Func |
||
ToString ( ) : string |
Gets the string representation of the source path.
|
|
TryGetSource ( ModelType rootType, string path, |
Attempts to create a new ModelSource for the specified root type and path.
|
|
TryGetSource ( ModelType rootType, string path, |
Attempts to create a new ModelSource for the specified root type and path.
|
Method | Description | |
---|---|---|
InitializeFromModelPath ( |
Initialize the source from a valid ModelPath
|
|
InitializeFromTypeAndPath ( ModelType rootType, string path, ModelProperty &sourceProperty ) : bool |
Attempts to initialize a ModelSource with the specified root type and path.
|
|
ModelSource ( ) : System |
public GetFormattedValue ( ModelInstance root ) : string | ||
root | ModelInstance | |
return | string |
public GetFormattedValue ( ModelInstance root, object &rawValue ) : string | ||
root | ModelInstance | |
rawValue | object | |
return | string |
public GetFormattedValue ( ModelInstance root, string format ) : string | ||
root | ModelInstance | |
format | string | The specific format to use |
return | string |
public GetFormattedValue ( ModelInstance root, string format, IFormatProvider provider, object &rawValue ) : string | ||
root | ModelInstance | |
format | string | |
provider | IFormatProvider | |
rawValue | object | |
return | string |
public GetFormattedValue ( ModelInstance root, string format, object &rawValue ) : string | ||
root | ModelInstance | |
format | string | |
rawValue | object | |
return | string |
public GetList ( ModelInstance root ) : ModelInstanceList | ||
root | ModelInstance | |
return | ModelInstanceList |
public GetModelProperties ( ModelType root ) : IEnumerable |
||
root | ModelType | The root type from which the property should be inferred |
return | IEnumerable |
public GetModelProperty ( ModelType root ) : ModelProperty | ||
root | ModelType | The root type from which the property should be inferred |
return | ModelProperty |
public GetReference ( ModelInstance root ) : ModelInstance | ||
root | ModelInstance | |
return | ModelInstance |
public GetSource ( ModelInstance root ) : IModelPropertySource | ||
root | ModelInstance | |
return | IModelPropertySource |
public GetSource ( ModelInstance root, Func |
||
root | ModelInstance | |
whenNull | Func |
|
return | IModelPropertySource |
public GetValue ( ModelInstance root ) : object | ||
root | ModelInstance | |
return | object |
public HasValue ( ModelInstance root ) : bool | ||
root | ModelInstance | |
return | bool |
public ModelSource ( |
||
path | The source model path | |
return | System |
public ModelSource ( ModelType rootType, string path ) : System | ||
rootType | ModelType | The root type name, which is required for instance paths |
path | string | The source path, which is either an instance path or a static path |
return | System |
public SetValue ( ModelInstance root, object value ) : bool | ||
root | ModelInstance | |
value | object | |
return | bool |
public SetValue ( ModelInstance root, object value, Func |
||
root | ModelInstance | |
value | object | |
whenNull | Func |
|
return | bool |
public static TryGetSource ( ModelType rootType, string path, |
||
rootType | ModelType | The root type name, which is required for instance paths |
path | string | The source path, which is either an instance path or a static path |
source | ||
return | bool |
public static TryGetSource ( ModelType rootType, string path, |
||
rootType | ModelType | The root type name, which is required for instance paths |
path | string | The source path, which is either an instance path or a static path |
source | ||
sourceProperty | ModelProperty | |
return | bool |