Platform.Xml.Serialization.SerializationMemberInfo.HasApplicableAttribute C# (CSharp) Method

HasApplicableAttribute() public method

public HasApplicableAttribute ( Type attributeType ) : bool
attributeType System.Type
return bool
        public bool HasApplicableAttribute(Type attributeType)
        {
            return GetFirstApplicableAttribute(attributeType) != null;
        }

Usage Example

Example #1
0
 public LightSerializationMember(SerializationMemberInfo memberInfo)
 {
     this.Getter                = memberInfo.Getter;
     this.Setter                = memberInfo.Setter;
     this.Serializer            = memberInfo.Serializer;
     this.MemberInfo            = memberInfo.MemberInfo;
     this.SerializedName        = memberInfo.GetSerializedName();
     this.SerializeAsCData      = memberInfo.SerializeAsCData;
     this.XmlTreatAsNullIfEmpty = memberInfo.HasApplicableAttribute(typeof(XmlTreatAsNullIfEmptyAttribute));
     this.LogicalType           = memberInfo.LogicalType;
 }
All Usage Examples Of Platform.Xml.Serialization.SerializationMemberInfo::HasApplicableAttribute