Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Markup / XamlSerializerUtil.cs / 1 / XamlSerializerUtil.cs
//---------------------------------------------------------------------------- // // File: XamlSerializerUtil.cs // // Description: // Static Helper methods used for Serialization. // // Copyright (C) 2005 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using MS.Internal.PresentationCore; namespace System.Windows.Markup { ////// Static helper methods used for Serialization process /// internal static class XamlCoreSerializerUtil { static XamlCoreSerializerUtil() { // // Dummy code to keep IAddChildInternal from being optimized out of // PresentationCore. PLEASE REMOVE WHEN IAddChildInternal DISAPPEARS. // ThrowIfIAddChildInternal("not IAddChildInternal"); } internal static void ThrowIfIAddChildInternal(object o) { // // Dummy code to keep IAddChildInternal from being optimized out of // PresentationCore. PLEASE REMOVE WHEN IAddChildInternal DISAPPEARS. // if ( o is IAddChildInternal) { throw new InvalidOperationException(); } } ////// Throw an exception if the passed string is not empty and is not /// all whitespace. This is used to check IAddChild.AddText calls for /// objects 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) { if (s != null) { for (int i = 0; i < s.Length; i++) { if (!Char.IsWhiteSpace(s[i])) { throw new ArgumentException(SR.Get(SRID.NonWhiteSpaceInAddText, s)); } } } } } } // 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
- JumpTask.cs
- NavigationProperty.cs
- RequestCacheEntry.cs
- PowerEase.cs
- AndCondition.cs
- NativeObjectSecurity.cs
- DataSourceDescriptorCollection.cs
- DynamicDocumentPaginator.cs
- UnitySerializationHolder.cs
- DesignTimeXamlWriter.cs
- FigureHelper.cs
- Mappings.cs
- FreezableDefaultValueFactory.cs
- CharUnicodeInfo.cs
- GraphicsContainer.cs
- ReadOnlyDataSource.cs
- filewebresponse.cs
- RichTextBoxDesigner.cs
- X509SecurityTokenProvider.cs
- SystemResources.cs
- ZoneMembershipCondition.cs
- StatusCommandUI.cs
- HttpStreamXmlDictionaryReader.cs
- IndexedString.cs
- StorageMappingItemCollection.cs
- DateTimeFormatInfoScanner.cs
- Win32.cs
- TextBoxBase.cs
- SqlParameter.cs
- SchemaElementDecl.cs
- DurableOperationContext.cs
- AuthenticateEventArgs.cs
- CoreSwitches.cs
- SpeakProgressEventArgs.cs
- DataReaderContainer.cs
- Calendar.cs
- TreeChangeInfo.cs
- NameValuePair.cs
- PageRequestManager.cs
- WebPartCollection.cs
- ClientSettings.cs
- DbExpressionBuilder.cs
- QueryStoreStatusRequest.cs
- WebServiceBindingAttribute.cs
- SourceFileBuildProvider.cs
- TreeSet.cs
- ConnectionPoint.cs
- InkCanvasInnerCanvas.cs
- WindowsListViewGroupHelper.cs
- SchemaSetCompiler.cs
- OdbcConnectionHandle.cs
- DisposableCollectionWrapper.cs
- WeakReferenceList.cs
- Preprocessor.cs
- ClientCredentialsElement.cs
- DbBuffer.cs
- documentation.cs
- SizeLimitedCache.cs
- SystemGatewayIPAddressInformation.cs
- MouseActionValueSerializer.cs
- MimeBasePart.cs
- SourceFileBuildProvider.cs
- RelationshipFixer.cs
- WebSysDefaultValueAttribute.cs
- HtmlInputImage.cs
- ExpandCollapseProviderWrapper.cs
- ToolStripItemEventArgs.cs
- SQLDouble.cs
- RectAnimationUsingKeyFrames.cs
- ProfileParameter.cs
- RtfToken.cs
- Calendar.cs
- TextComposition.cs
- StructuralObject.cs
- Vector3DIndependentAnimationStorage.cs
- AsymmetricKeyExchangeFormatter.cs
- DataSourceBooleanViewSchemaConverter.cs
- codemethodreferenceexpression.cs
- WCFServiceClientProxyGenerator.cs
- CharacterHit.cs
- GcHandle.cs
- FigureParaClient.cs
- Int32Animation.cs
- ListViewTableRow.cs
- EventHandlers.cs
- WindowsSpinner.cs
- ConfigurationSchemaErrors.cs
- DispatchChannelSink.cs
- CellParagraph.cs
- XmlSchemaObject.cs
- Code.cs
- WebPartMovingEventArgs.cs
- TextDecoration.cs
- DataGridViewButtonColumn.cs
- AssemblyInfo.cs
- Int32RectValueSerializer.cs
- KeyValueConfigurationCollection.cs
- DesignerSerializerAttribute.cs
- GlyphInfoList.cs
- XmlSchemaChoice.cs