CodeDomSerializerBase.SerializeProperty Method

Definition

Serializes a property on the given object.

C#
protected void SerializeProperty(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, System.ComponentModel.PropertyDescriptor propertyToSerialize);

Parameters

manager
IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

statements
CodeStatementCollection

The CodeStatementCollection into which the property will be serialized.

value
Object

The object on which the property will be serialized.

propertyToSerialize
PropertyDescriptor

The property to serialize.

Exceptions

manager, value, statements, or propertyToSerialize is null.

Remarks

The SerializeProperty method retrieves a MemberCodeDomSerializer for the propertyToSerialize parameter and delegates to it.

SerializeProperty places the statements and propertyToSerialize parameters on the ContextStack.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also