Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / Runtime / Serialization / Json / JsonGlobals.cs / 1 / JsonGlobals.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Runtime.Serialization.Json { using System.Runtime.Serialization; using System.ServiceModel.Description; using System.Xml; using System.Security; using System.Reflection; static class JsonGlobals { //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly int DataContractXsdBaseNamespaceLength = Globals.DataContractXsdBaseNamespace.Length; //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly XmlDictionaryString dDictionaryString = new XmlDictionary().Add("d"); //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly char[] floatingPointCharacters = new char[] { '.', 'e' }; //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly XmlDictionaryString itemDictionaryString = new XmlDictionary().Add("item"); //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly XmlDictionaryString rootDictionaryString = new XmlDictionary().Add("root"); //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly Type TypeOfJsonFaultDetail = typeof(WebScriptEnablingBehavior.JsonFaultDetail); //// Review - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityRequiresReview] public static readonly long unixEpochTicks = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).Ticks; public const string applicationJsonMediaType = "application/json"; public const string arrayString = "array"; public const string booleanString = "boolean"; public const string CacheControlString = "Cache-Control"; public const byte CollectionByte = (byte) CollectionChar; public const char CollectionChar = '['; public const string DateTimeEndGuardReader = ")/"; public const string DateTimeEndGuardWriter = ")\\/"; public const string DateTimeStartGuardReader = "/Date("; public const string DateTimeStartGuardWriter = "\\/Date("; public const string dString = "d"; public const byte EndCollectionByte = (byte) EndCollectionChar; public const char EndCollectionChar = ']'; public const byte EndObjectByte = (byte) EndObjectChar; public const char EndObjectChar = '}'; public const string ExpiresString = "Expires"; public const string IfModifiedSinceString = "If-Modified-Since"; public const string itemString = "item"; public const string jsonerrorString = "jsonerror"; public const string KeyString = "Key"; public const string LastModifiedString = "Last-Modified"; public const int maxScopeSize = 25; public const byte MemberSeparatorByte = (byte) MemberSeparatorChar; public const char MemberSeparatorChar = ','; public const byte NameValueSeparatorByte = (byte) NameValueSeparatorChar; public const char NameValueSeparatorChar = ':'; public const string NameValueSeparatorString = ":"; public const string nullString = "null"; public const string numberString = "number"; public const byte ObjectByte = (byte) ObjectChar; public const char ObjectChar = '{'; public const string objectString = "object"; public const string publicString = "public"; public const byte QuoteByte = (byte) QuoteChar; public const char QuoteChar = '"'; public const string rootString = "root"; public const string serverTypeString = "__type"; public const string stringString = "string"; public const string textJsonMediaType = "text/json"; public const string trueString = "true"; public const string typeString = "type"; public const string ValueString = "Value"; public const char WhitespaceChar = ' '; public const string xmlnsPrefix = "xmlns"; public const string xmlPrefix = "xml"; //// Critical - Static fields are marked SecurityCritical or readonly to prevent // data from being modified or leaked to other components in appdomain. // [SecurityCritical] static Module jsonSerializationModule; internal static Module JsonSerializationModule { //// Critical - fetches the critical jsonSerializationModule field // Safe - get-only properties only needs to be protected for write; initialized in getter if null. // [SecurityCritical, SecurityTreatAsSafe] get { if (jsonSerializationModule == null) { jsonSerializationModule = typeof(JsonDataContract).Module; // could to be replaced by different dll that has SkipVerification set to false } return jsonSerializationModule; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeUnloadedException.cs
- UIElement3D.cs
- SqlMethodTransformer.cs
- RootBuilder.cs
- StrokeCollectionDefaultValueFactory.cs
- EventMap.cs
- PropertyConverter.cs
- GZipStream.cs
- DataGridViewRowPostPaintEventArgs.cs
- keycontainerpermission.cs
- TemplateXamlParser.cs
- DataMisalignedException.cs
- VirtualPathProvider.cs
- Models.cs
- GradientBrush.cs
- ToolStripItemImageRenderEventArgs.cs
- PolicyValidationException.cs
- GridViewRow.cs
- InvalidProgramException.cs
- _NegoStream.cs
- FrameworkContentElement.cs
- MouseGesture.cs
- HMACSHA1.cs
- AsymmetricCryptoHandle.cs
- FrameworkObject.cs
- RestHandlerFactory.cs
- WebPartMinimizeVerb.cs
- EventBuilder.cs
- Panel.cs
- GroupLabel.cs
- Int32CAMarshaler.cs
- RepeaterItemEventArgs.cs
- RegionData.cs
- ConstraintEnumerator.cs
- EditorPartCollection.cs
- InvariantComparer.cs
- DelegateArgumentReference.cs
- Compiler.cs
- LazyLoadBehavior.cs
- RemotingConfiguration.cs
- SimpleNameService.cs
- Utils.cs
- RecommendedAsConfigurableAttribute.cs
- ConfigurationElement.cs
- WebRequestModuleElementCollection.cs
- HttpModulesSection.cs
- XslUrlEditor.cs
- AudienceUriMode.cs
- MimeReflector.cs
- XmlSchemaSimpleContentExtension.cs
- TextServicesManager.cs
- WebPartEventArgs.cs
- TemplateXamlParser.cs
- Mappings.cs
- CompositeCollection.cs
- ConstructorNeedsTagAttribute.cs
- DataBindingsDialog.cs
- SafeFreeMibTable.cs
- OperandQuery.cs
- DoubleKeyFrameCollection.cs
- AutomationProperty.cs
- CheckableControlBaseAdapter.cs
- ImmutableObjectAttribute.cs
- ProxyGenerator.cs
- X509Chain.cs
- SqlParameter.cs
- HorizontalAlignConverter.cs
- TypeReference.cs
- Facet.cs
- UnmanagedMemoryStreamWrapper.cs
- HMACSHA512.cs
- CheckBoxPopupAdapter.cs
- _NTAuthentication.cs
- RowToFieldTransformer.cs
- RadioButtonStandardAdapter.cs
- ApplicationSecurityManager.cs
- SessionEndingCancelEventArgs.cs
- TreeViewImageKeyConverter.cs
- SmtpClient.cs
- AnnotationResource.cs
- ConfigXmlCDataSection.cs
- DataControlButton.cs
- ProcessHostFactoryHelper.cs
- EditCommandColumn.cs
- StrongNameKeyPair.cs
- FileResponseElement.cs
- WebPartMovingEventArgs.cs
- StorageTypeMapping.cs
- BitmapMetadataBlob.cs
- _NegoStream.cs
- BatchWriter.cs
- AnnotationResourceCollection.cs
- XmlNamedNodeMap.cs
- GridViewCommandEventArgs.cs
- SourceFileInfo.cs
- XsltOutput.cs
- TextAutomationPeer.cs
- XslAstAnalyzer.cs
- ISAPIApplicationHost.cs
- DuplexChannelBinder.cs