private void LoadAttributes(SerializerOptions options)
{
applicableMemberAttributes = ExtractApplicableAttributes(GetCustomAttributes(memberInfo, typeof (XmlSerializationAttribute), true), options);
if (memberInfo is Type)
{
applicableTypeAttributes = applicableMemberAttributes;
}
else
{
applicableTypeAttributes = ExtractApplicableAttributes(GetCustomAttributes(GetDeclaredType(memberInfo), typeof (XmlSerializationAttribute), true), options);
}
}