SimpleTypeResolver Class
Provides a type resolver for managed types.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
System.Web.Script.Serialization::JavaScriptTypeResolver
System.Web.Script.Serialization::SimpleTypeResolver
| Name | Description | |
|---|---|---|
![]() | SimpleTypeResolver() | Initializes a new instance of the SimpleTypeResolver class. |
| 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ResolveType(String^) | Returns the Type of the specified name.(Overrides JavaScriptTypeResolver::ResolveType(String^).) |
![]() | ResolveTypeId(Type^) | 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.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
AssemblyQualifiedName
System.Web.Script.Serialization Namespace
Web Services in ASP.NET AJAX
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)