Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / Script / Serialization / SimpleTypeResolver.cs / 1 / SimpleTypeResolver.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Serialization { using System; using System.Security.Permissions; using System.Web; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal), ] 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.Security.Permissions; using System.Web; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal), ] 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
- WebPartConnectionsConfigureVerb.cs
- GenericIdentity.cs
- ConfigUtil.cs
- XmlSchemaProviderAttribute.cs
- RelationshipEnd.cs
- EventProxy.cs
- FormConverter.cs
- NamedPipeTransportSecurityElement.cs
- CommandField.cs
- SqlCacheDependencySection.cs
- EnumCodeDomSerializer.cs
- ContainerParagraph.cs
- SafeHandle.cs
- OciHandle.cs
- FontCacheLogic.cs
- ActivityMarkupSerializationProvider.cs
- StackBuilderSink.cs
- ExtendedProtectionPolicy.cs
- UpdatePanel.cs
- Vector3DValueSerializer.cs
- Vector3DCollection.cs
- ConnectionPointGlyph.cs
- WizardStepCollectionEditor.cs
- TextView.cs
- EnumCodeDomSerializer.cs
- ComPlusDiagnosticTraceSchemas.cs
- webclient.cs
- Pkcs7Signer.cs
- NumericExpr.cs
- ResolvedKeyFrameEntry.cs
- OneToOneMappingSerializer.cs
- _StreamFramer.cs
- Rectangle.cs
- MobileTextWriter.cs
- TypeUnloadedException.cs
- StreamGeometryContext.cs
- RequestCache.cs
- DbProviderFactoriesConfigurationHandler.cs
- MailAddress.cs
- HelpKeywordAttribute.cs
- ToggleButton.cs
- GradientBrush.cs
- SafeViewOfFileHandle.cs
- X509IssuerSerialKeyIdentifierClause.cs
- RawStylusInput.cs
- IntegrationExceptionEventArgs.cs
- WebDisplayNameAttribute.cs
- ListItemViewControl.cs
- ACL.cs
- PageRanges.cs
- ToolboxComponentsCreatedEventArgs.cs
- GridViewUpdatedEventArgs.cs
- InvalidProgramException.cs
- UIElementAutomationPeer.cs
- DesignerResources.cs
- TypeSource.cs
- TypeInitializationException.cs
- TemplatePropertyEntry.cs
- DataGridViewRow.cs
- MapPathBasedVirtualPathProvider.cs
- PanelDesigner.cs
- RegexCaptureCollection.cs
- LongTypeConverter.cs
- MachineKeySection.cs
- SymLanguageType.cs
- TextDecorations.cs
- FunctionNode.cs
- PassportIdentity.cs
- CodeSnippetStatement.cs
- SiteMapSection.cs
- NavigationExpr.cs
- EditorPartCollection.cs
- AssemblyHash.cs
- MenuItemBinding.cs
- Connector.cs
- AsyncParams.cs
- BinaryWriter.cs
- TypedTableGenerator.cs
- MemberHolder.cs
- EUCJPEncoding.cs
- GroupQuery.cs
- WmpBitmapDecoder.cs
- objectresult_tresulttype.cs
- PtsHost.cs
- PagesChangedEventArgs.cs
- ValueConversionAttribute.cs
- FrameworkReadOnlyPropertyMetadata.cs
- GCHandleCookieTable.cs
- StaticContext.cs
- DefaultSettingsSection.cs
- HijriCalendar.cs
- ImportContext.cs
- Rect3D.cs
- FormatSettings.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ComponentCollection.cs
- Image.cs
- IndexerNameAttribute.cs
- CSharpCodeProvider.cs
- SqlWebEventProvider.cs