Class NewTypeCallSiteAttribute
Marks a parameter, local variable, return type or field as requiring a value to be of the newtype specified by the type parameter.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter|AttributeTargets.ReturnValue, AllowMultiple = false)]
public class NewTypeCallSiteAttribute : Attribute
- Inheritance
-
NewTypeCallSiteAttribute
- Inherited Members
- Extension Methods
Constructors
NewTypeCallSiteAttribute(Type)
Creates a new instance of the NewTypeCallSiteAttribute type.
public NewTypeCallSiteAttribute(Type newType)
Parameters
newTypeTypeThe type, marked with the NewTypeAttribute attribute, which this call site requires.
Properties
NewType
The type, marked with the NewTypeAttribute attribute, which this call site requires.
public Type NewType { get; set; }