This wraps reflection types so that it is portable across different Unity runtimes.
More...
|
|
static bool | HasAttribute (MemberInfo element, Type attributeType) |
| | Returns true if the given attribute is defined on the given element.
|
| |
|
static bool | HasAttribute< TAttribute > (MemberInfo element) |
| | Returns true if the given attribute is defined on the given element.
|
| |
| static Attribute | GetAttribute (MemberInfo element, Type attributeType) |
| | Fetches the given attribute from the given MemberInfo. This method applies caching and is allocation free (after caching has been performed).
|
| |
| static TAttribute | GetAttribute< TAttribute > (MemberInfo element) |
| | Fetches the given attribute from the given MemberInfo.
|
| |
This wraps reflection types so that it is portable across different Unity runtimes.
◆ GetAttribute()
| static Attribute FullSerializer.Internal.fsPortableReflection.GetAttribute |
( |
MemberInfo | element, |
|
|
Type | attributeType ) |
|
inlinestatic |
Fetches the given attribute from the given MemberInfo. This method applies caching and is allocation free (after caching has been performed).
- Parameters
-
| element | The MemberInfo the get the attribute from. |
| attributeType | The type of attribute to fetch. |
- Returns
- The attribute or null.
◆ GetAttribute< TAttribute >()
Fetches the given attribute from the given MemberInfo.
- Template Parameters
-
| TAttribute | The type of attribute to fetch. |
- Parameters
-
| element | The MemberInfo to get the attribute from. |
- Returns
- The attribute or null.
The documentation for this class was generated from the following file:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/Tracking/JSON Serializer/Source/Internal/fsPortableReflection.cs