Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public class CustomSerializationPolicy : ISerializationPolicy
public CustomSerializationPolicy(string id, bool allowNonSerializableTypes, Func<MemberInfo, bool> shouldSerializeFunc)
System.String | id | The policy ID. |
System.Boolean | allowNonSerializableTypes | if set to |
System.Func<System.Reflection.MemberInfo, System.Boolean> | shouldSerializeFunc | The delegate to use for determining whether members should be serialized. |
System.ArgumentNullException | The id argument or the shouldSerializeFunc argument was null. |
public bool AllowNonSerializableTypes { get; }
public string ID { get; }
public bool ShouldSerializeMember(MemberInfo member)
System.Reflection.MemberInfo | member | The member to check. |
System.Boolean |
|