Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / XamlSerializerUtil.cs / 1305600 / 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)); } } } } #endregion Helpers } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // 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)); } } } } #endregion Helpers } } // 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
- IHttpResponseInternal.cs
- TableRowCollection.cs
- ImageCodecInfoPrivate.cs
- PrivateFontCollection.cs
- Size3DConverter.cs
- ApplicationProxyInternal.cs
- CodeBinaryOperatorExpression.cs
- WebPartCatalogCloseVerb.cs
- GeneratedView.cs
- PartialTrustHelpers.cs
- DictionarySectionHandler.cs
- EUCJPEncoding.cs
- HelpKeywordAttribute.cs
- PixelShader.cs
- FlowDecision.cs
- ImageDrawing.cs
- X509CertificateChain.cs
- RegisteredExpandoAttribute.cs
- TextElement.cs
- BaseCodePageEncoding.cs
- EntityObject.cs
- XmlTextWriter.cs
- UrlPath.cs
- UpdatePanel.cs
- WebBrowsableAttribute.cs
- ResourceReferenceExpression.cs
- GeneralTransform3DTo2DTo3D.cs
- AsymmetricSignatureFormatter.cs
- EndOfStreamException.cs
- _DisconnectOverlappedAsyncResult.cs
- EmbeddedMailObjectsCollection.cs
- Stroke.cs
- SqlInternalConnection.cs
- TimelineGroup.cs
- NamedPipeAppDomainProtocolHandler.cs
- CatalogPart.cs
- Object.cs
- SrgsItemList.cs
- HashCodeCombiner.cs
- HijriCalendar.cs
- SqlCacheDependencyDatabaseCollection.cs
- TiffBitmapDecoder.cs
- WebZone.cs
- ApplicationFileParser.cs
- TransformValueSerializer.cs
- _LocalDataStore.cs
- EmptyCollection.cs
- JsonReader.cs
- InternalConfigHost.cs
- RegexCapture.cs
- Vector3DCollection.cs
- InternalConfigHost.cs
- ConstrainedDataObject.cs
- TransactionScope.cs
- PropertyGrid.cs
- DefaultMergeHelper.cs
- BatchStream.cs
- SafeLibraryHandle.cs
- StringFreezingAttribute.cs
- CapabilitiesState.cs
- SafeLocalMemHandle.cs
- Transform3D.cs
- DataBoundControlActionList.cs
- initElementDictionary.cs
- SymbolType.cs
- GridView.cs
- Int32CollectionConverter.cs
- M3DUtil.cs
- serverconfig.cs
- StringBlob.cs
- ManifestResourceInfo.cs
- FastEncoderWindow.cs
- HtmlControlPersistable.cs
- Resources.Designer.cs
- ChannelDispatcherBase.cs
- DelimitedListTraceListener.cs
- DataGridViewRowEventArgs.cs
- TemplateKeyConverter.cs
- HandlerFactoryCache.cs
- ReflectionTypeLoadException.cs
- DelegateBodyWriter.cs
- VSWCFServiceContractGenerator.cs
- QilLoop.cs
- DecimalSumAggregationOperator.cs
- SetStateEventArgs.cs
- EntityException.cs
- FormViewDeletedEventArgs.cs
- _SslStream.cs
- TextBlock.cs
- X509Utils.cs
- EncoderReplacementFallback.cs
- JoinSymbol.cs
- WindowsMenu.cs
- InlinedAggregationOperatorEnumerator.cs
- CommandBindingCollection.cs
- Vector.cs
- DES.cs
- BamlLocalizabilityResolver.cs
- XNodeNavigator.cs
- IItemProperties.cs