ResXResourceWriterCompatibleFormat Property
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 Visual Studio.
Default value:
.
Namespace: KGySoft.ResourcesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public bool CompatibleFormat { get; set; }
Public Property CompatibleFormat As Boolean
Get
Set
public:
property bool CompatibleFormat {
bool get ();
void set (bool value);
}
member CompatibleFormat : bool with get, set
Property Value
Boolean
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, Type, BigInteger, Rune, Half,
DateOnly, TimeOnly, Int128 and UInt128.
- 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.
When the value of this property is
, then adding non-natively supported entries may cause
a
NotSupportedException on .NET 8.0 and above where
BinaryFormatter is no longer supported.
InvalidOperationException | In a set operation, a value cannot be specified because the creation of the .resx file content has already been started. |