Class XamlMemberInvoker
Inheritance
System.Object
XamlMemberInvoker
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Xaml.Schema
Assembly: OpenSilver.Xaml.dll
Syntax
public class XamlMemberInvoker
Constructors
| Improve this Doc View SourceXamlMemberInvoker()
Declaration
protected XamlMemberInvoker()
XamlMemberInvoker(XamlMember)
Declaration
public XamlMemberInvoker(XamlMember member)
Parameters
Type | Name | Description |
---|---|---|
XamlMember | member |
Properties
| Improve this Doc View SourceMember
Declaration
protected XamlMember Member { get; }
Property Value
Type | Description |
---|---|
XamlMember |
UnderlyingGetter
Declaration
public MethodInfo UnderlyingGetter { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
UnderlyingSetter
Declaration
public MethodInfo UnderlyingSetter { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
UnknownInvoker
Declaration
public static XamlMemberInvoker UnknownInvoker { get; }
Property Value
Type | Description |
---|---|
XamlMemberInvoker |
Methods
| Improve this Doc View SourceGetValue(Object)
Declaration
public virtual object GetValue(object instance)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance |
Returns
Type | Description |
---|---|
System.Object |
IsDefaultValue(Object)
Gets a value indicating that the instance is considered the default value of the member.
Declaration
public virtual bool IsDefaultValue(object instance)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance | instance of the object to test if it is default. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remarks
This uses the DefaultValueAttribute normally, but for immutable structs this is also useful to define that the value is default.
E.g. for immutable collections, this uses the IsDefault property to determine if it should be written to xaml.
SetValue(Object, Object)
Declaration
public virtual void SetValue(object instance, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance | |
System.Object | value |
ShouldSerializeValue(Object)
Declaration
public virtual ShouldSerializeResult ShouldSerializeValue(object instance)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance |
Returns
Type | Description |
---|---|
ShouldSerializeResult |