Reflectors Class
Provides factory methods for Reflector<T> instances.
C#
public static class Reflectors
- Inheritance
-
Reflectors
Methods
Of |
Creates a new instance of the Reflector<string> class. |
Of(Parameter |
Creates a new instance of the Reflector<object> class. |
Methods Detail
OfString(ParameterInfo)
Creates a new instance of the Reflector<string> class.
C#
public static Reflector<string> OfString(ParameterInfo info)
Parameters
- info
-
Parameter
Info
The constructor parameter marked with the attribute ForAttributeAttribute or ForTextAttribute. The parameter type must be a string or BindResult<string>.
Returns
The new instance of the Reflector<T> class.
Of(ParameterInfo)
Creates a new instance of the Reflector<object> class.
C#
public static Reflector<object> Of(ParameterInfo info)
Parameters
- info
-
Parameter
Info
The constructor parameter marked with the attribute RequiredAttribute, OptionalAttribute, or MultipleAttribute.
Returns
The new instance of the Reflector<T> class.