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
- Method.cs
- ProcessHostMapPath.cs
- DesignTimeParseData.cs
- TopClause.cs
- TcpTransportManager.cs
- RectangleHotSpot.cs
- FocusChangedEventArgs.cs
- InfoCardKeyedHashAlgorithm.cs
- ProjectionPathBuilder.cs
- EventSourceCreationData.cs
- FamilyMap.cs
- ScrollBarRenderer.cs
- ListViewUpdateEventArgs.cs
- ScriptResourceInfo.cs
- MessageQueueConverter.cs
- HttpWriter.cs
- BitmapData.cs
- WeakEventManager.cs
- DataGridViewDataErrorEventArgs.cs
- DesignTimeTemplateParser.cs
- MarginCollapsingState.cs
- IntranetCredentialPolicy.cs
- XmlSchemaValidationException.cs
- HtmlInputFile.cs
- CachedCompositeFamily.cs
- Stack.cs
- TypeForwardedToAttribute.cs
- FontStyleConverter.cs
- Sequence.cs
- XmlAttributeOverrides.cs
- DataObjectCopyingEventArgs.cs
- UserNameSecurityTokenAuthenticator.cs
- PenLineJoinValidation.cs
- AppLevelCompilationSectionCache.cs
- FixedPageStructure.cs
- TextEncodedRawTextWriter.cs
- ProvideValueServiceProvider.cs
- BatchParser.cs
- StringResourceManager.cs
- ByteAnimationUsingKeyFrames.cs
- ListBindingHelper.cs
- WindowsBrush.cs
- TextFormatter.cs
- FactorySettingsElement.cs
- GeneralTransform3DTo2D.cs
- DataGridCell.cs
- ParserContext.cs
- PackagingUtilities.cs
- HandoffBehavior.cs
- BindingEntityInfo.cs
- ClickablePoint.cs
- EtwTrace.cs
- DataColumnChangeEvent.cs
- EventEntry.cs
- MailDefinition.cs
- SqlTypeSystemProvider.cs
- XmlTextReader.cs
- SocketAddress.cs
- Parameter.cs
- Util.cs
- SessionSwitchEventArgs.cs
- ContentTypeSettingClientMessageFormatter.cs
- SessionStateContainer.cs
- Calendar.cs
- ColumnResizeAdorner.cs
- DoubleAnimationClockResource.cs
- XmlSchemaComplexContentRestriction.cs
- KeyConstraint.cs
- PrintingPermissionAttribute.cs
- GorillaCodec.cs
- LogStore.cs
- CacheMemory.cs
- AdCreatedEventArgs.cs
- DataGridViewCellCancelEventArgs.cs
- WebServiceErrorEvent.cs
- ConstraintConverter.cs
- NavigationPropertyEmitter.cs
- FixedSOMLineCollection.cs
- Rotation3D.cs
- FontWeightConverter.cs
- FileLogRecord.cs
- HttpConfigurationContext.cs
- ColumnMapTranslator.cs
- List.cs
- GlobalEventManager.cs
- OracleDateTime.cs
- WebUtility.cs
- BlobPersonalizationState.cs
- Parser.cs
- COM2PropertyDescriptor.cs
- LoadMessageLogger.cs
- CellCreator.cs
- _NativeSSPI.cs
- RegionData.cs
- EnumConverter.cs
- GiveFeedbackEvent.cs
- ToolStripItemClickedEventArgs.cs
- InnerItemCollectionView.cs
- PeerTransportSecurityElement.cs
- SubpageParaClient.cs