SimpleTypeResolver Class
Provides a type resolver for managed types.
System.Web.Script.Serialization::JavaScriptTypeResolver
System.Web.Script.Serialization::SimpleTypeResolver
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The SimpleTypeResolver type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ResolveType | Returns the Type of the specified name. (Overrides JavaScriptTypeResolver::ResolveType(String).) |
![]() | ResolveTypeId | Returns the assembly-qualified name of the specified Type. (Overrides JavaScriptTypeResolver::ResolveTypeId(Type).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This type resolver can be used with the JavaScriptSerializer class to include in the serialized JavaScript Object Notation (JSON) string the assembly-qualified name of any managed type that requires custom type metadata.
The SimpleTypeResolver class enables you to serialize managed types as JSON while retaining the managed type definition for custom types.
To create an instance of the JavaScriptSerializer class that uses a type resolver, you must use the JavaScriptSerializer(JavaScriptTypeResolver) constructor.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

