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
- CodeCatchClauseCollection.cs
- WindowsComboBox.cs
- BrowserCapabilitiesFactory.cs
- TextEffectResolver.cs
- HMAC.cs
- XmlFormatExtensionAttribute.cs
- CodeTypeOfExpression.cs
- HttpDebugHandler.cs
- RoleManagerModule.cs
- TraceUtils.cs
- ToolStripManager.cs
- CqlErrorHelper.cs
- FlowPanelDesigner.cs
- DefinitionBase.cs
- XmlElement.cs
- PenThreadWorker.cs
- EventLogTraceListener.cs
- SkewTransform.cs
- Pair.cs
- DataGridViewRowPrePaintEventArgs.cs
- _NestedSingleAsyncResult.cs
- MULTI_QI.cs
- BitmapMetadata.cs
- XsdCachingReader.cs
- DataContractSet.cs
- Internal.cs
- BasePattern.cs
- HtmlLink.cs
- SqlReorderer.cs
- IIS7WorkerRequest.cs
- CheckBox.cs
- CfgSemanticTag.cs
- Stacktrace.cs
- DataServiceProcessingPipelineEventArgs.cs
- ApplicationId.cs
- CachedPathData.cs
- HtmlLabelAdapter.cs
- HtmlUtf8RawTextWriter.cs
- Errors.cs
- MenuAutomationPeer.cs
- PackagePartCollection.cs
- ComponentEditorPage.cs
- MasterPageBuildProvider.cs
- DomNameTable.cs
- DesignerSerializationVisibilityAttribute.cs
- SelectorItemAutomationPeer.cs
- Mapping.cs
- SqlProfileProvider.cs
- Regex.cs
- DataGridViewUtilities.cs
- XPathNodeHelper.cs
- SchemaElement.cs
- HScrollBar.cs
- ResourcePart.cs
- TypeUsage.cs
- WSTrustFeb2005.cs
- ClientSideProviderDescription.cs
- DynamicDiscoSearcher.cs
- MultiPageTextView.cs
- Cursor.cs
- NodeCounter.cs
- ManagementException.cs
- ViewKeyConstraint.cs
- ColorMatrix.cs
- VisualStyleTypesAndProperties.cs
- CodeTypeReferenceSerializer.cs
- ConfigXmlWhitespace.cs
- Queue.cs
- HiddenFieldPageStatePersister.cs
- ProtocolsSection.cs
- ObjectRef.cs
- SystemTcpStatistics.cs
- WmfPlaceableFileHeader.cs
- TextContainerChangedEventArgs.cs
- LinqDataSourceDisposeEventArgs.cs
- DataBoundControlHelper.cs
- Visual3D.cs
- ProfileProvider.cs
- SignatureHelper.cs
- Set.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SqlCachedBuffer.cs
- ThreadStartException.cs
- SafeFindHandle.cs
- Path.cs
- ContentFileHelper.cs
- WSSecurityTokenSerializer.cs
- NativeMethods.cs
- PerformanceCounterManager.cs
- StreamFormatter.cs
- XmlTextReaderImplHelpers.cs
- XmlSchema.cs
- RemotingConfiguration.cs
- SmtpFailedRecipientException.cs
- RelationalExpressions.cs
- TransactionsSectionGroup.cs
- EnumValidator.cs
- ReflectPropertyDescriptor.cs
- ListItemCollection.cs
- WorkflowServiceBehavior.cs