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
- pingexception.cs
- ProcessHostMapPath.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- RowToFieldTransformer.cs
- HyperLinkColumn.cs
- LookupBindingPropertiesAttribute.cs
- ZipFileInfo.cs
- ShortcutKeysEditor.cs
- MetaType.cs
- Directory.cs
- EasingKeyFrames.cs
- SoapConverter.cs
- MenuScrollingVisibilityConverter.cs
- ShutDownListener.cs
- Utils.cs
- CodeTypeReferenceCollection.cs
- DataBoundControl.cs
- ToolStripButton.cs
- _ListenerResponseStream.cs
- ListViewDataItem.cs
- SspiHelper.cs
- TransactionTraceIdentifier.cs
- NullableDoubleSumAggregationOperator.cs
- WSFederationHttpBindingElement.cs
- StringResourceManager.cs
- WebPartZoneBase.cs
- FocusManager.cs
- DesignerActionVerbList.cs
- UIElement.cs
- BaseTemplateBuildProvider.cs
- XmlSchemaFacet.cs
- ProviderManager.cs
- TypedRowHandler.cs
- DocumentGridPage.cs
- WebBrowserProgressChangedEventHandler.cs
- TripleDESCryptoServiceProvider.cs
- Timeline.cs
- TableAutomationPeer.cs
- TreeViewImageKeyConverter.cs
- WindowsMenu.cs
- XmlTextReaderImpl.cs
- ToolboxItemImageConverter.cs
- HttpRequestTraceRecord.cs
- XmlConverter.cs
- Message.cs
- ColorAnimation.cs
- _LocalDataStoreMgr.cs
- WindowShowOrOpenTracker.cs
- PropertyCollection.cs
- RunWorkerCompletedEventArgs.cs
- ContentOperations.cs
- QilLiteral.cs
- Point3DCollection.cs
- MetadataElement.cs
- PropertyPathWorker.cs
- NodeFunctions.cs
- CompositeCollectionView.cs
- XmlDataSource.cs
- Misc.cs
- RegularExpressionValidator.cs
- SignatureResourceHelper.cs
- UITypeEditors.cs
- SortQuery.cs
- OdbcHandle.cs
- DataGridViewAdvancedBorderStyle.cs
- DefaultMemberAttribute.cs
- EditorZoneBase.cs
- WebDescriptionAttribute.cs
- SelectorItemAutomationPeer.cs
- SoapInteropTypes.cs
- PlacementWorkspace.cs
- SerializationEventsCache.cs
- TargetFrameworkUtil.cs
- MemberMaps.cs
- AssemblyAssociatedContentFileAttribute.cs
- UIElementParagraph.cs
- FixUpCollection.cs
- VariableDesigner.xaml.cs
- Intellisense.cs
- OdbcStatementHandle.cs
- ComEventsMethod.cs
- CodeDOMUtility.cs
- MetadataArtifactLoaderCompositeResource.cs
- Debug.cs
- DataServiceStreamProviderWrapper.cs
- StandardCommands.cs
- Scheduler.cs
- HostProtectionPermission.cs
- ChildDocumentBlock.cs
- Lasso.cs
- FileSecurity.cs
- PageAdapter.cs
- SqlSupersetValidator.cs
- SoapTypeAttribute.cs
- Region.cs
- ToolStrip.cs
- MouseBinding.cs
- HostExecutionContextManager.cs
- XhtmlConformanceSection.cs
- ResolveMatches11.cs