Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StyleXamlTreeBuilder.cs
- Renderer.cs
- WindowPattern.cs
- TypeSystem.cs
- UnsafeNativeMethods.cs
- CodeDelegateInvokeExpression.cs
- X509ChainPolicy.cs
- Span.cs
- IgnoreFlushAndCloseStream.cs
- MetabaseServerConfig.cs
- TextEmbeddedObject.cs
- ErrorLog.cs
- XmlSchemaComplexContentRestriction.cs
- NoClickablePointException.cs
- CharEnumerator.cs
- PermissionAttributes.cs
- EnvelopedSignatureTransform.cs
- HistoryEventArgs.cs
- DeadCharTextComposition.cs
- ValueType.cs
- GridItemProviderWrapper.cs
- WinHttpWebProxyFinder.cs
- GenericPrincipal.cs
- ListView.cs
- Visitor.cs
- Hyperlink.cs
- Part.cs
- ToolStripOverflowButton.cs
- mediaeventargs.cs
- RuleSettingsCollection.cs
- documentsequencetextview.cs
- HashLookup.cs
- _BaseOverlappedAsyncResult.cs
- WindowsGrip.cs
- SystemIPInterfaceStatistics.cs
- SafeEventHandle.cs
- HttpException.cs
- SqlCommandSet.cs
- VideoDrawing.cs
- InteropEnvironment.cs
- SubclassTypeValidator.cs
- SettingsPropertyCollection.cs
- TdsEnums.cs
- CanExecuteRoutedEventArgs.cs
- EdmToObjectNamespaceMap.cs
- AspCompat.cs
- OdbcError.cs
- DataGridColumnCollection.cs
- VisualProxy.cs
- Convert.cs
- TraceContextRecord.cs
- TargetControlTypeAttribute.cs
- BitmapPalettes.cs
- XsltFunctions.cs
- ParamArrayAttribute.cs
- GacUtil.cs
- ConnectionStringEditor.cs
- DataListDesigner.cs
- LogLogRecord.cs
- FixedSOMGroup.cs
- WaitHandle.cs
- ChtmlTextWriter.cs
- SizeLimitedCache.cs
- HttpPostServerProtocol.cs
- PageCanvasSize.cs
- ConsumerConnectionPointCollection.cs
- WmlTextViewAdapter.cs
- RelationshipType.cs
- Binding.cs
- ExpressionBuilder.cs
- ApplicationId.cs
- DecimalConverter.cs
- SmtpReplyReader.cs
- SqlUtils.cs
- ControlBuilder.cs
- CharAnimationBase.cs
- CircleHotSpot.cs
- ConditionedDesigner.cs
- HttpWebRequest.cs
- ComponentEditorForm.cs
- SerializationSectionGroup.cs
- DataExchangeServiceBinder.cs
- StringExpressionSet.cs
- InlineUIContainer.cs
- CompModSwitches.cs
- OpenTypeLayoutCache.cs
- FlowDocumentReader.cs
- MenuItemBinding.cs
- RecognitionEventArgs.cs
- BaseTemplateParser.cs
- ImageClickEventArgs.cs
- StateInitializationDesigner.cs
- SafeLibraryHandle.cs
- EventPrivateKey.cs
- XmlSubtreeReader.cs
- XmlKeywords.cs
- FormParameter.cs
- GeneralTransform2DTo3D.cs
- TypedReference.cs
- FastEncoder.cs