public override bool IsExcluded <TProperty, TContainer, TValue>(TProperty property, ref TContainer container)
 {
     return(AttributeCache <TValue> .HasAttribute <NonSerializedForPersistenceAttribute>() || base.IsExcluded <TProperty, TContainer, TValue>(property, ref container));
 }
示例#2
0
 public static bool HasAttribute <TType, TAttribute>()
     where TAttribute : Attribute
 {
     return(AttributeCache <TType> .HasAttribute <TAttribute>());
 }
 public override bool IsExcluded <TProperty, TContainer, TValue>(TProperty property, ref TContainer container)
 {
     return(property.Attributes?.HasAttribute <HideInInspectorAttribute>() ?? AttributeCache <TValue> .HasAttribute <HideInInspectorAttribute>() ||
            typeof(EntityGuid).IsAssignableFrom(typeof(TValue)) ||
            typeof(DynamicBufferContainer <EntityName>).IsAssignableFrom(typeof(TValue)));
 }