Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Script / Serialization / SimpleTypeResolver.cs / 1305376 / SimpleTypeResolver.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Serialization { using System; using System.Web; public class SimpleTypeResolver : JavaScriptTypeResolver { public override Type ResolveType(string id) { return Type.GetType(id); } public override string ResolveTypeId(Type type) { if (type == null) { throw new ArgumentNullException("type"); } return type.AssemblyQualifiedName; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Serialization { using System; using System.Web; public class SimpleTypeResolver : JavaScriptTypeResolver { public override Type ResolveType(string id) { return Type.GetType(id); } public override string ResolveTypeId(Type type) { if (type == null) { throw new ArgumentNullException("type"); } return type.AssemblyQualifiedName; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InstanceHandleConflictException.cs
- MobileControlsSectionHelper.cs
- WebContext.cs
- GeometryGroup.cs
- ControlEvent.cs
- HttpWriter.cs
- GatewayIPAddressInformationCollection.cs
- UIElement.cs
- LineUtil.cs
- QuaternionIndependentAnimationStorage.cs
- WindowsAltTab.cs
- TableLayoutPanelCellPosition.cs
- WorkflowMarkupSerializationException.cs
- EncoderBestFitFallback.cs
- ClientData.cs
- DataStreams.cs
- input.cs
- SimpleWorkerRequest.cs
- Double.cs
- DataListAutoFormat.cs
- CodeTypeMemberCollection.cs
- shaperfactoryquerycachekey.cs
- GACIdentityPermission.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- SessionIDManager.cs
- SafeUserTokenHandle.cs
- SHA512CryptoServiceProvider.cs
- KnownTypesProvider.cs
- ElementMarkupObject.cs
- MdbDataFileEditor.cs
- ScrollChrome.cs
- TraceXPathNavigator.cs
- ApplicationSecurityManager.cs
- hwndwrapper.cs
- login.cs
- Completion.cs
- ServiceDescriptionImporter.cs
- XmlTextReaderImplHelpers.cs
- MgmtConfigurationRecord.cs
- DataBinding.cs
- GridViewRow.cs
- TargetInvocationException.cs
- KeyTime.cs
- XMLSyntaxException.cs
- HttpAsyncResult.cs
- ClientUIRequest.cs
- WsdlInspector.cs
- EncodingConverter.cs
- _SSPISessionCache.cs
- ControlOperationInvoker.cs
- WebRequestModuleElement.cs
- OutputScopeManager.cs
- remotingproxy.cs
- SelectionEditingBehavior.cs
- DataContractSerializer.cs
- NetworkAddressChange.cs
- UIElement3DAutomationPeer.cs
- NodeFunctions.cs
- EntityReference.cs
- DataGridViewRowHeaderCell.cs
- ConversionHelper.cs
- MaskedTextProvider.cs
- RegistrySecurity.cs
- ControlCachePolicy.cs
- DiagnosticsConfiguration.cs
- TextDecoration.cs
- PageAdapter.cs
- PropertyPath.cs
- XamlToRtfWriter.cs
- IFlowDocumentViewer.cs
- ButtonFlatAdapter.cs
- CompModSwitches.cs
- Decorator.cs
- KoreanLunisolarCalendar.cs
- DbCommandDefinition.cs
- ClipboardData.cs
- StorageScalarPropertyMapping.cs
- ColorBlend.cs
- DrawingCollection.cs
- COAUTHIDENTITY.cs
- IndexExpression.cs
- EventWaitHandle.cs
- InstanceData.cs
- SmtpSection.cs
- IndexedString.cs
- ArgumentFixer.cs
- ExpandCollapseProviderWrapper.cs
- ScriptServiceAttribute.cs
- ControlAdapter.cs
- EntityStoreSchemaFilterEntry.cs
- ExceptionHelpers.cs
- ImmComposition.cs
- MemberPath.cs
- SizeAnimationClockResource.cs
- XpsS0ValidatingLoader.cs
- ScanQueryOperator.cs
- HttpCacheVary.cs
- PreservationFileWriter.cs
- HtmlButton.cs
- LateBoundBitmapDecoder.cs