Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlProcessingInstruction.cs
- BaseParaClient.cs
- CaretElement.cs
- XmlDocumentFragment.cs
- DataSourceControlBuilder.cs
- SqlGatherProducedAliases.cs
- DefaultAuthorizationContext.cs
- Attributes.cs
- ToolStripDropDown.cs
- Calendar.cs
- COM2Enum.cs
- WebPartEventArgs.cs
- StdValidatorsAndConverters.cs
- PngBitmapDecoder.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TextBlock.cs
- _UriTypeConverter.cs
- FontFamily.cs
- SafeBitVector32.cs
- TextFormattingConverter.cs
- RequiredAttributeAttribute.cs
- PrivilegedConfigurationManager.cs
- DataGridViewControlCollection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PropertyInformationCollection.cs
- Timer.cs
- NegationPusher.cs
- DeferredReference.cs
- ChineseLunisolarCalendar.cs
- DataGridViewRowCollection.cs
- NominalTypeEliminator.cs
- Polyline.cs
- FrameworkContentElementAutomationPeer.cs
- WebPartDescriptionCollection.cs
- PropertyConverter.cs
- FieldNameLookup.cs
- MiniModule.cs
- WebUtil.cs
- StatusBar.cs
- BCLDebug.cs
- SrgsToken.cs
- CapabilitiesUse.cs
- ErrorHandler.cs
- TypeSystemProvider.cs
- LineSegment.cs
- CultureTableRecord.cs
- FrameworkElement.cs
- RuntimeConfigurationRecord.cs
- ReadOnlyAttribute.cs
- MissingManifestResourceException.cs
- figurelength.cs
- ToolTip.cs
- SqlBulkCopy.cs
- FilterException.cs
- DES.cs
- NameScopePropertyAttribute.cs
- ComEventsHelper.cs
- ZipIOExtraField.cs
- UnsafeNativeMethods.cs
- CommandBinding.cs
- Container.cs
- EventBookmark.cs
- MenuItemAutomationPeer.cs
- HtmlHead.cs
- PassportAuthenticationModule.cs
- TabletDevice.cs
- UpdatePanelTriggerCollection.cs
- TextParagraphCache.cs
- HighlightVisual.cs
- AuthorizationRuleCollection.cs
- NeutralResourcesLanguageAttribute.cs
- FilteredAttributeCollection.cs
- TakeOrSkipQueryOperator.cs
- CodeIdentifier.cs
- SmtpFailedRecipientsException.cs
- LocationSectionRecord.cs
- ProfileInfo.cs
- ClientUtils.cs
- Root.cs
- SrgsRule.cs
- ViewBase.cs
- MsmqOutputMessage.cs
- HitTestWithGeometryDrawingContextWalker.cs
- MethodExecutor.cs
- PropertyItem.cs
- SystemIcmpV6Statistics.cs
- DataGridViewCell.cs
- GridViewRowPresenterBase.cs
- ComponentEditorPage.cs
- SchemaRegistration.cs
- BuildTopDownAttribute.cs
- FamilyTypefaceCollection.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- MediaTimeline.cs
- ResourceExpressionBuilder.cs
- CollectionViewSource.cs
- TcpSocketManager.cs
- TempFiles.cs
- ToolBar.cs