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
- FileLevelControlBuilderAttribute.cs
- TextBox.cs
- COM2PropertyBuilderUITypeEditor.cs
- PrintControllerWithStatusDialog.cs
- MultiTrigger.cs
- OverflowException.cs
- QueryTaskGroupState.cs
- OSFeature.cs
- dbdatarecord.cs
- FormattedTextSymbols.cs
- PeerObject.cs
- CodeMemberProperty.cs
- ProcessHost.cs
- ModelItemDictionary.cs
- LinqDataSourceInsertEventArgs.cs
- Menu.cs
- AuthenticateEventArgs.cs
- NamespaceQuery.cs
- AnnotationResource.cs
- Interfaces.cs
- LogArchiveSnapshot.cs
- InvalidTimeZoneException.cs
- StrokeFIndices.cs
- ReferentialConstraint.cs
- ClosableStream.cs
- TypeBuilder.cs
- BitmapEffectCollection.cs
- HtmlInputCheckBox.cs
- DynamicDataRoute.cs
- ProfileManager.cs
- AsyncWaitHandle.cs
- XmlElement.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DesignerDataView.cs
- XsltConvert.cs
- SQLBytesStorage.cs
- PropertyInfoSet.cs
- SystemFonts.cs
- MembershipValidatePasswordEventArgs.cs
- AvTrace.cs
- ListViewSelectEventArgs.cs
- X509ThumbprintKeyIdentifierClause.cs
- DataObject.cs
- PeerName.cs
- TargetInvocationException.cs
- DataControlImageButton.cs
- ProbeDuplexAsyncResult.cs
- TimeSpanSecondsConverter.cs
- DataSpaceManager.cs
- XmlNodeReader.cs
- ListViewDeleteEventArgs.cs
- SafeArrayRankMismatchException.cs
- TransformValueSerializer.cs
- basemetadatamappingvisitor.cs
- XmlILIndex.cs
- EdmSchemaError.cs
- SoapAttributeOverrides.cs
- SQLGuid.cs
- EndOfStreamException.cs
- StorageComplexTypeMapping.cs
- DbModificationClause.cs
- EntityClientCacheEntry.cs
- _AutoWebProxyScriptWrapper.cs
- StorageEntityTypeMapping.cs
- ListViewInsertionMark.cs
- TextInfo.cs
- AttachedAnnotationChangedEventArgs.cs
- WebMessageBodyStyleHelper.cs
- QueueException.cs
- Currency.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlElementAttribute.cs
- ReceiveErrorHandling.cs
- ConfigXmlText.cs
- AccessViolationException.cs
- CommandField.cs
- _MultipleConnectAsync.cs
- UpdateManifestForBrowserApplication.cs
- BindingExpression.cs
- CodeRemoveEventStatement.cs
- InputProcessorProfiles.cs
- PartManifestEntry.cs
- PackageProperties.cs
- SegmentInfo.cs
- StylusButtonCollection.cs
- PreservationFileWriter.cs
- ServiceMemoryGates.cs
- UIElement3DAutomationPeer.cs
- Application.cs
- MappingSource.cs
- DBConnection.cs
- StringReader.cs
- PathFigureCollectionConverter.cs
- TextDecorationLocationValidation.cs
- StringSorter.cs
- RegexParser.cs
- FactoryGenerator.cs
- DirectoryObjectSecurity.cs
- DataTableMapping.cs
- MetadataItem_Static.cs