@@ -538,8 +538,6 @@ public static DeserializationErrorDelegate OnDeserializationError
538538
539539 public static HashSet < Type > TreatValueAsRefTypes = new HashSet < Type > ( ) ;
540540
541- public static HashSet < Type > TreatAsAbstractType = new HashSet < Type > ( ) ;
542-
543541 private static bool ? sPreferInterfaces ;
544542 /// <summary>
545543 /// If set to true, Interface types will be prefered over concrete types when serializing.
@@ -715,7 +713,6 @@ public static void Reset()
715713 HasSerializeFn = new HashSet < Type > ( ) ;
716714 HasIncludeDefaultValue = new HashSet < Type > ( ) ;
717715 TreatValueAsRefTypes = new HashSet < Type > { typeof ( KeyValuePair < , > ) } ;
718- TreatAsAbstractType = new HashSet < Type > ( ) ;
719716 sPropertyConvention = null ;
720717 sExcludePropertyReferences = null ;
721718 sExcludeTypes = new HashSet < Type > { typeof ( Stream ) } ;
@@ -772,23 +769,6 @@ public class JsConfig<T>
772769 /// </summary>
773770 public static bool ? ExcludeTypeInfo = null ;
774771
775- /// <summary>
776- /// Treat non-abstract type like an abstract type
777- /// </summary>
778- public static bool TreatAsAbstractType
779- {
780- get { return JsConfig . TreatAsAbstractType . Contains ( typeof ( T ) ) ; }
781- set
782- {
783- if ( value )
784- JsConfig . TreatAsAbstractType . Add ( typeof ( T ) ) ;
785- else
786- JsConfig . TreatAsAbstractType . Remove ( typeof ( T ) ) ;
787-
788- ClearFnCaches ( ) ;
789- }
790- }
791-
792772 /// <summary>
793773 /// <see langword="true"/> if the <see cref="ITypeSerializer"/> is configured
794774 /// to take advantage of <see cref="CLSCompliantAttribute"/> specification,
0 commit comments