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
- SoapFormatterSinks.cs
- UniqueEventHelper.cs
- TextSpan.cs
- XmlDocumentSchema.cs
- TypeConverterBase.cs
- SQLUtility.cs
- Convert.cs
- EdmFunction.cs
- ServicePointManager.cs
- CurrentChangedEventManager.cs
- CLRBindingWorker.cs
- SoapCodeExporter.cs
- WindowsStreamSecurityElement.cs
- TagElement.cs
- VisualStyleTypesAndProperties.cs
- StreamInfo.cs
- SortDescriptionCollection.cs
- CollectionContainer.cs
- String.cs
- SqlCacheDependencyDatabase.cs
- DateTimeParse.cs
- ParameterToken.cs
- LazyInitializer.cs
- Label.cs
- CommandCollectionEditor.cs
- Crc32Helper.cs
- ToolStripContentPanelDesigner.cs
- SignatureDescription.cs
- MappingException.cs
- SiteMapNodeItemEventArgs.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SoapAttributeAttribute.cs
- ElementUtil.cs
- TextElementCollectionHelper.cs
- List.cs
- SoapServerProtocol.cs
- KeyValuePair.cs
- UpdatePanel.cs
- DataBoundControlActionList.cs
- MsmqInputMessagePool.cs
- DrawingCollection.cs
- PowerModeChangedEventArgs.cs
- PeerCollaborationPermission.cs
- ClientConvert.cs
- ObjectDataSourceSelectingEventArgs.cs
- CreateUserWizard.cs
- BitmapSource.cs
- ExcCanonicalXml.cs
- HandlerFactoryCache.cs
- Object.cs
- SubstitutionList.cs
- SharedRuntimeState.cs
- TranslateTransform.cs
- formatter.cs
- ThrowHelper.cs
- FrameworkRichTextComposition.cs
- _RequestLifetimeSetter.cs
- sqlinternaltransaction.cs
- NGCSerializerAsync.cs
- figurelength.cs
- Visual3D.cs
- EventEntry.cs
- OracleBFile.cs
- SystemBrushes.cs
- SettingsPropertyIsReadOnlyException.cs
- AppSettingsExpressionBuilder.cs
- IntSumAggregationOperator.cs
- MouseGesture.cs
- ViewEvent.cs
- FixedHighlight.cs
- Terminate.cs
- UInt32.cs
- LicenseContext.cs
- SiteMapNodeItemEventArgs.cs
- X509ChainElement.cs
- CompositeTypefaceMetrics.cs
- SessionParameter.cs
- WizardPanel.cs
- SHA384Managed.cs
- InputBindingCollection.cs
- FamilyTypeface.cs
- FunctionUpdateCommand.cs
- GroupByQueryOperator.cs
- FrameDimension.cs
- TdsValueSetter.cs
- XslAst.cs
- ExtensionFile.cs
- PrintDocument.cs
- RIPEMD160.cs
- TextRunCacheImp.cs
- AppliesToBehaviorDecisionTable.cs
- AppDomainUnloadedException.cs
- PrincipalPermissionMode.cs
- BrowserCapabilitiesCodeGenerator.cs
- embossbitmapeffect.cs
- HighContrastHelper.cs
- OpenFileDialog.cs
- Wildcard.cs
- precedingquery.cs
- SectionVisual.cs