Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Markup / XamlSerializerUtil.cs / 2 / 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
- GcSettings.cs
- OdbcParameter.cs
- SafeLibraryHandle.cs
- WebControlsSection.cs
- IdleTimeoutMonitor.cs
- DictionaryCustomTypeDescriptor.cs
- Transactions.cs
- SystemIPInterfaceStatistics.cs
- WorkflowViewManager.cs
- HandlerFactoryCache.cs
- SQLConvert.cs
- XmlDigitalSignatureProcessor.cs
- MessageContractMemberAttribute.cs
- HostExecutionContextManager.cs
- QilChoice.cs
- TemplatedMailWebEventProvider.cs
- NetMsmqSecurityMode.cs
- SourceElementsCollection.cs
- ReceiveSecurityHeaderElementManager.cs
- SplitterEvent.cs
- SchemaNotation.cs
- SymbolEqualComparer.cs
- WebPartCloseVerb.cs
- LinkedDataMemberFieldEditor.cs
- UserCancellationException.cs
- AsyncStreamReader.cs
- OleDbSchemaGuid.cs
- BamlStream.cs
- SID.cs
- BaseValidator.cs
- MetabaseSettingsIis7.cs
- Italic.cs
- ThreadInterruptedException.cs
- TextEditorTyping.cs
- ButtonBase.cs
- GroupByExpressionRewriter.cs
- MissingFieldException.cs
- SettingsSection.cs
- HttpListenerPrefixCollection.cs
- RadioButtonRenderer.cs
- RowUpdatedEventArgs.cs
- Rect3DConverter.cs
- ConstraintManager.cs
- Errors.cs
- ProvidersHelper.cs
- XPathParser.cs
- MetafileEditor.cs
- EdmSchemaError.cs
- DirectoryInfo.cs
- ControlCachePolicy.cs
- CompiledELinqQueryState.cs
- TextShapeableCharacters.cs
- ObjectViewEntityCollectionData.cs
- PtsContext.cs
- WindowsBrush.cs
- TrustManagerPromptUI.cs
- GeneratedContractType.cs
- Stack.cs
- Module.cs
- MultiPageTextView.cs
- TextDecorations.cs
- ButtonStandardAdapter.cs
- SupportingTokenProviderSpecification.cs
- HttpWebRequestElement.cs
- SqlUtil.cs
- DispatcherEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- BitmapEffectOutputConnector.cs
- WaitingCursor.cs
- DataServiceClientException.cs
- TimerEventSubscriptionCollection.cs
- XmlEntity.cs
- SqlServices.cs
- DragDrop.cs
- ConditionCollection.cs
- AsymmetricSignatureDeformatter.cs
- CodeCompileUnit.cs
- XmlSchemaExternal.cs
- MultiDataTrigger.cs
- Label.cs
- NavigatingCancelEventArgs.cs
- UIElement.cs
- SearchForVirtualItemEventArgs.cs
- DesignerActionHeaderItem.cs
- DebuggerAttributes.cs
- WinEventWrap.cs
- XdrBuilder.cs
- InfocardInteractiveChannelInitializer.cs
- ObjectHandle.cs
- ToolboxItemCollection.cs
- PlatformNotSupportedException.cs
- ToolStripDropDownClosedEventArgs.cs
- ComplusEndpointConfigContainer.cs
- HScrollProperties.cs
- SoapProcessingBehavior.cs
- MenuBindingsEditor.cs
- HtmlControl.cs
- BackoffTimeoutHelper.cs
- XamlClipboardData.cs
- Timer.cs