/// <summary> /// This attribute defines the name of the collection that will house objects of this type. /// </summary> /// <param name="TypeNameSerialization">How the type name should be serialized.</param> /// <param name="FieldName">Type field name.</param> public TypeNameAttribute(TypeNameSerialization TypeNameSerialization, string FieldName) : base() { this.typeNameSerialization = TypeNameSerialization; this.fieldName = FieldName; }
/// <summary> /// This attribute defines the name of the collection that will house objects of this type. /// </summary> /// <param name="TypeNameSerialization">How the type name should be serialized.</param> public TypeNameAttribute(TypeNameSerialization TypeNameSerialization) : this(TypeNameSerialization, "_type") { }