/// <summary> /// Initializes a new instance of the <see cref="TypeConfig"/> class. /// </summary> /// <param name="type">The type.</param> internal TypeConfig(Type type) { this.Type = type; this.EnableAnonymousFieldSetters = false; this.Properties = TypeConstants.EmptyPropertyInfoArray; this.Fields = TypeConstants.EmptyFieldInfoArray; JsConfig.AddUniqueType(this.Type); }