Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / XamlSerializerUtil.cs / 1 / XamlSerializerUtil.cs
//---------------------------------------------------------------------------- // // File: XamlSerializerUtil.cs // // Description: // Static Helper methods used for building NamespaceTables // and during actual Serialization. // // Copyright (C) 2003 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Security; using System.Security.Permissions; using System.Windows; using System.Globalization; using System.Windows.Data; using MS.Utility; using MS.Internal; #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { ////// Static helper methods used for building /// NamespaceTables and during the actual /// Serialization process /// internal static class XamlSerializerUtil { #region Helpers ////// Throw an exception if the passed string is not empty and is not /// all whitespace. This is used to check IAddChild.AddText calls for /// object that don't handle text, but may get some whitespace if /// if xml:space="preserve" is set in xaml. /// internal static void ThrowIfNonWhiteSpaceInAddText(string s, object parent) { if (s != null) { for (int i = 0; i < s.Length; i++) { if (!Char.IsWhiteSpace(s[i])) { throw new ArgumentException(SR.Get(SRID.NonWhiteSpaceInAddText, s)); } } } } internal static CultureInfo EnglishUSCulture { get { if (_englishUSCulture == null) { _englishUSCulture = CultureInfo.GetCultureInfo("en-us"); } return _englishUSCulture; } } #endregion Helpers #region Data private static CultureInfo _englishUSCulture = null; #endregion Data } } // 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
- TdsEnums.cs
- TTSEngineProxy.cs
- IIS7UserPrincipal.cs
- CodeTypeMemberCollection.cs
- DataGridViewToolTip.cs
- GroupBox.cs
- SqlCacheDependencyDatabase.cs
- ZipIOExtraFieldZip64Element.cs
- PanelContainerDesigner.cs
- HwndAppCommandInputProvider.cs
- ProcessModelSection.cs
- DuplexChannelFactory.cs
- DataExpression.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- CodeExporter.cs
- UInt64Converter.cs
- PermissionAttributes.cs
- RoleManagerEventArgs.cs
- RTTrackingProfile.cs
- DrawingGroup.cs
- SurrogateSelector.cs
- XmlSchemaSimpleContent.cs
- EdmEntityTypeAttribute.cs
- BinaryCommonClasses.cs
- DbConnectionStringCommon.cs
- TrackingProfileDeserializationException.cs
- SchemaNotation.cs
- ServiceHttpHandlerFactory.cs
- DesignTimeParseData.cs
- ActivityTrace.cs
- TextEditorLists.cs
- DataGridSortingEventArgs.cs
- SynchronousReceiveElement.cs
- PageThemeBuildProvider.cs
- PackagingUtilities.cs
- BoundField.cs
- ListBindingHelper.cs
- InputLanguageCollection.cs
- CheckBoxAutomationPeer.cs
- IisHelper.cs
- DrawingContextWalker.cs
- EntityViewContainer.cs
- HTTPNotFoundHandler.cs
- _Win32.cs
- Decoder.cs
- HtmlHead.cs
- _SSPIWrapper.cs
- ToolStripItem.cs
- TemplateBindingExpression.cs
- CompositeFontInfo.cs
- MethodBuilder.cs
- Mappings.cs
- SQLCharsStorage.cs
- FileLoadException.cs
- StringReader.cs
- DataColumnMappingCollection.cs
- WebServiceAttribute.cs
- EventLogPermissionEntryCollection.cs
- LoginUtil.cs
- Queue.cs
- GPPOINTF.cs
- CodeDelegateCreateExpression.cs
- SessionPageStateSection.cs
- TreeWalker.cs
- BitStack.cs
- BrowserDefinition.cs
- TransformCryptoHandle.cs
- GeneralTransform3DTo2DTo3D.cs
- FontWeight.cs
- XmlSchemaSequence.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ParallelQuery.cs
- serverconfig.cs
- CommonRemoteMemoryBlock.cs
- SQLMembershipProvider.cs
- CallContext.cs
- PrintPageEvent.cs
- Throw.cs
- PhysicalOps.cs
- DefaultValueAttribute.cs
- SqlRowUpdatingEvent.cs
- FacetEnabledSchemaElement.cs
- FixedPosition.cs
- TabletDevice.cs
- PersistNameAttribute.cs
- DataListItemCollection.cs
- ResourceExpressionEditorSheet.cs
- UInt64Storage.cs
- XmlMemberMapping.cs
- MeasureItemEvent.cs
- UnicastIPAddressInformationCollection.cs
- ParseHttpDate.cs
- ReadContentAsBinaryHelper.cs
- TimeManager.cs
- DataRelationPropertyDescriptor.cs
- ProviderBase.cs
- ToolStripButton.cs
- Helper.cs
- CategoryNameCollection.cs
- ListViewHitTestInfo.cs