KGy SOFT

ResXResourceWriterCompatibleFormat Property

KGy SOFT Core Libraries Help
Gets or sets whether the ResXResourceWriter instance should create a System compatible .resx file, which can be used by the built-in resource editor of the Visual Studio.
Default value: .
See the Remarks section for details.

Namespace:  KGySoft.Resources
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public bool CompatibleFormat { get; set; }

Property Value

Type: Boolean
Exceptions

ExceptionCondition
InvalidOperationExceptionIn a set operation, a value cannot be specified because the creation of the .resx file content has already been started.
Remarks

The value of the property affects the following differences:
  • The reader and writer attributes in resheader elements.
  • Type of ResXFileRef file references.
  • The placeholder type of  references.
  • If CompatibleFormat is , some additional types are supported natively (without a mimetype attribute): IntPtr, UIntPtr, DBNull and Type.
  • If CompatibleFormat is , unpaired surrogate Char values are supported.
  • The mimetype and content of binary serialized elements. If CompatibleFormat is , these objects are serialized by BinarySerializationFormatter, which provides a much more compact result than the default BinaryFormatter.
See Also

Reference