The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CustomReflectionContext::CreateProperty Method (Type^, String^, Func<Object^, Object^>^, Action<Object^, Object^>^)
.NET Framework (current version)
Creates an object that represents a property to be added to a type, to be used with the AddProperties method.
Assembly: System.Reflection.Context (in System.Reflection.Context.dll)
protected:
PropertyInfo^ CreateProperty(
Type^ propertyType,
String^ name,
Func<Object^, Object^>^ getter,
Action<Object^, Object^>^ setter
)
Parameters
- propertyType
-
Type:
System::Type^
The type of the property to create.
- name
-
Type:
System::String^
The name of the property to create.
- getter
-
Type:
System::Func<Object^, Object^>^
An object that represents the property's get accessor.
- setter
-
Type:
System::Action<Object^, Object^>^
An object that represents the property's set accessor.
Objects that are returned by this method are not complete PropertyInfo objects, and should be used only in the context of the AddProperties method.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Show: