-
Notifications
You must be signed in to change notification settings - Fork 131
Property backing fields
Specifying a <property>
element should be enough to target a backing field,
but if for some reason that is not enough you can in addition target the backing
field separately.
namespace MyAssembly {
public class MyClass {
public int MyProperty1 { get; set; }
public int MyProperty2 { get; set; }
}
}
<linker>
<assembly fullname="MyAssembly">
<type fullname="MyAssembly.MyClass">
<!-- the name of a backing field is "<PropertyName>k_BackingField" -->
<field name="<MyProperty1>k_BackingField" />
<field signature="System.Int32 <MyProperty2>k_BackingField" />
</type>
</assembly>
</linker>
Since link.xml
uses XML syntax, we must escape the <
symbols as <
and
>
symbols as >
.
Unlike traditional HTML with its large range of character entity references, in XML there are only five predefined character entity references. These are used to escape characters that are markup sensitive in certain contexts:
&
→&
(ampersand,U+0026
)<
→<
(less-than sign,U+003C
)>
→>
(greater-than sign,U+003E
)"
→"
(quotation mark,U+0022
)'
→'
(apostrophe,U+0027
)https://en.wikipedia.org/wiki/Character_encodings_in_HTML#XML_character_references
new!
Unity's package is now officially ready for public use: Install official UPM package
This package is licensed under The MIT License (MIT)
Copyright © 2019 Kalle Jillheden (jilleJr)
https://github.com/jilleJr/Newtonsoft.Json
See full copyrights in LICENSE.md inside repository
About- Home
-
Install Newtonsoft.Json
Deprecated:
-
Install converters for Unity