var knownTypesFromAttributes = new List<Type> ();
- foreach (var attr in type.GetCustomAttributes (typeof(KnownTypeAttribute)))
+ foreach (var attr in type.GetCustomAttributes (typeof (KnownTypeAttribute), false))
knownTypesFromAttributes.Add ((attr as KnownTypeAttribute).Type);
if (knownTypes != null)
{
}
-#if NET_4_5
public DataContractJsonSerializer (Type type, DataContractJsonSerializerSettings settings)
: this (type, settings.RootName, settings.KnownTypes, settings.MaxItemsInObjectGraph, settings.IgnoreExtensionDataObject,
settings.DataContractSurrogate, false)
{
}
-#endif
#endregion
writer.WriteEndElement ();
}
-#if NET_4_5
[MonoTODO]
public DateTimeFormat DateTimeFormat {
get { throw new NotImplementedException (); }
public bool UseSimpleDictionaryFormat {
get { throw new NotImplementedException (); }
}
-#endif
}
}