 | GenericPropertyGetterGetPropertyT Method |
Returns properties from a class that were not included in the same class after previous serialisation.
class can be converted. Occurs with dynamically loaded assembly.
Namespace: Vishnu.InterchangeAssembly: Vishnu.Interchange (in Vishnu.Interchange.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic static T GetProperty<T>(
Object instance,
string name
)
Public Shared Function GetProperty(Of T) (
instance As Object,
name As String
) As T
public:
generic<type name T>
static T GetProperty(
Object^ instance,
String^ name
)
static member GetProperty :
instance : Object *
name : string -> 'T
Parameters
- instance Object
- Instance of the class for which a direct typecast fails.
- name String
- Name of the property to be read.
Type parameters
- T
- Type of a property of an instance that has been deleted due to a previous serialisation.
cannot be cast into its original type.
Return value
TDesired property of type T.
See also