CodeDomSerializerBase::SerializeToResourceExpression Method (IDesignerSerializationManager^, Object^, Boolean)
.NET Framework (current version)
Serializes the given object into an expression appropriate for the invariant culture.
Assembly: System.Design (in System.Design.dll)
protected: CodeExpression^ SerializeToResourceExpression( IDesignerSerializationManager^ manager, Object^ value, bool ensureInvariant )
Parameters
- manager
-
Type:
System.ComponentModel.Design.Serialization::IDesignerSerializationManager^
The IDesignerSerializationManager to use for serialization.
- value
-
Type:
System::Object^
The object to serialize.
- ensureInvariant
-
Type:
System::Boolean
true to serialize into the invariant culture; otherwise, false.
Return Value
Type: System.CodeDom::CodeExpression^A CodeExpression containing value as a serialized expression.
| Exception | Condition |
|---|---|
| ArgumentNullException | manager is null. |
If the ensureInvariant parameter is true, the SerializeToResourceExpression method will also write the resource value into the invariant culture’s resource file if the current ResourceCulture is not the invariant culture..
.NET Framework
Available since 2.0
Available since 2.0
Show: