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
- ByteViewer.cs
- ContextMenuStrip.cs
- FormsAuthenticationEventArgs.cs
- DetailsViewModeEventArgs.cs
- ColumnCollection.cs
- TogglePatternIdentifiers.cs
- DbDataAdapter.cs
- DocumentXPathNavigator.cs
- SpellCheck.cs
- UserControlFileEditor.cs
- DeploymentExceptionMapper.cs
- ProxyHwnd.cs
- HostProtectionPermission.cs
- SecurityTokenException.cs
- UrlMapping.cs
- DocumentOrderQuery.cs
- SystemIcmpV6Statistics.cs
- EntityContainerRelationshipSetEnd.cs
- SymmetricKeyWrap.cs
- PermissionToken.cs
- ImageCodecInfo.cs
- wmiprovider.cs
- SortQuery.cs
- WindowsMenu.cs
- RestHandler.cs
- DocumentViewerHelper.cs
- CollectionViewProxy.cs
- smtpconnection.cs
- entityreference_tresulttype.cs
- BindableAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- ListViewTableCell.cs
- SafeCryptContextHandle.cs
- EncryptedReference.cs
- SoapRpcServiceAttribute.cs
- FilteredXmlReader.cs
- AutoGeneratedFieldProperties.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- NameTable.cs
- AccessDataSourceView.cs
- Identity.cs
- AuthenticationConfig.cs
- ServiceEndpointElement.cs
- SourceCollection.cs
- ToolStripProgressBar.cs
- ListViewUpdateEventArgs.cs
- GlobalItem.cs
- EntitySqlQueryCacheKey.cs
- HttpRequest.cs
- ProviderConnectionPoint.cs
- Brush.cs
- HtmlControl.cs
- SizeAnimationBase.cs
- DataSourceHelper.cs
- Label.cs
- DbgUtil.cs
- SpanIndex.cs
- StyleSelector.cs
- ResXResourceSet.cs
- PerfCounters.cs
- OuterProxyWrapper.cs
- ToolStripKeyboardHandlingService.cs
- DisplayNameAttribute.cs
- KeyFrames.cs
- ListViewDeleteEventArgs.cs
- TemplatedWizardStep.cs
- ResetableIterator.cs
- AdPostCacheSubstitution.cs
- SemanticBasicElement.cs
- TypefaceMetricsCache.cs
- RemoteWebConfigurationHost.cs
- HtmlInputText.cs
- UIElementHelper.cs
- SessionStateModule.cs
- XamlFilter.cs
- HybridDictionary.cs
- DataGridViewComboBoxColumn.cs
- HitTestResult.cs
- BaseTemplateCodeDomTreeGenerator.cs
- WebPartCloseVerb.cs
- ControlParameter.cs
- AlternateViewCollection.cs
- DataSvcMapFileSerializer.cs
- XmlChildNodes.cs
- SelectionChangedEventArgs.cs
- selecteditemcollection.cs
- CollectionViewGroupRoot.cs
- AdPostCacheSubstitution.cs
- PropertyTabAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- SafeEventLogWriteHandle.cs
- HighlightVisual.cs
- SamlAudienceRestrictionCondition.cs
- HandlerFactoryWrapper.cs
- MergePropertyDescriptor.cs
- __FastResourceComparer.cs
- ConnectionConsumerAttribute.cs
- EventData.cs
- ClientCultureInfo.cs
- ConfigUtil.cs