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
- ToolZoneDesigner.cs
- SqlDataSourceSelectingEventArgs.cs
- DecoderNLS.cs
- ProfileModule.cs
- BaseCodePageEncoding.cs
- FontUnitConverter.cs
- DiscoveryClientProtocol.cs
- WrappingXamlSchemaContext.cs
- Decorator.cs
- SapiAttributeParser.cs
- SingleStorage.cs
- WindowShowOrOpenTracker.cs
- Clock.cs
- ObjectDataSourceEventArgs.cs
- XPathBuilder.cs
- GenericXmlSecurityTokenAuthenticator.cs
- RtfNavigator.cs
- FolderLevelBuildProvider.cs
- DataKey.cs
- SettingsContext.cs
- SystemIdentity.cs
- DependencyStoreSurrogate.cs
- UserInitiatedRoutedEventPermission.cs
- CheckBoxFlatAdapter.cs
- CalendarModeChangedEventArgs.cs
- ListBoxItemWrapperAutomationPeer.cs
- TextRunCacheImp.cs
- AsymmetricSignatureDeformatter.cs
- cookiecollection.cs
- SqlCharStream.cs
- RoutedEventConverter.cs
- ClickablePoint.cs
- WhitespaceRuleLookup.cs
- PageAdapter.cs
- TableCellAutomationPeer.cs
- Soap12ProtocolImporter.cs
- QueryParameter.cs
- AsyncCodeActivityContext.cs
- LingerOption.cs
- ConnectionManagementSection.cs
- AutomationEventArgs.cs
- MulticastDelegate.cs
- RepeaterItemEventArgs.cs
- TextFragmentEngine.cs
- ZipIOCentralDirectoryFileHeader.cs
- ProxyElement.cs
- SystemIPv6InterfaceProperties.cs
- Part.cs
- PreloadHost.cs
- HotSpotCollection.cs
- Queue.cs
- ObjectQueryExecutionPlan.cs
- DependencyPropertyKind.cs
- ManualResetEvent.cs
- SessionEndedEventArgs.cs
- XmlIlGenerator.cs
- TemplateParser.cs
- RightNameExpirationInfoPair.cs
- AppLevelCompilationSectionCache.cs
- ProgressBar.cs
- StrokeCollection.cs
- invalidudtexception.cs
- ThreadStartException.cs
- DataTableClearEvent.cs
- ReferenceConverter.cs
- SafeNativeMethodsCLR.cs
- Vars.cs
- RowToFieldTransformer.cs
- TypeUtil.cs
- MasterPage.cs
- Lease.cs
- SystemGatewayIPAddressInformation.cs
- RotationValidation.cs
- BinaryObjectInfo.cs
- XmlUrlResolver.cs
- RecommendedAsConfigurableAttribute.cs
- ContractTypeNameCollection.cs
- BitmapMetadata.cs
- ToolboxItemFilterAttribute.cs
- HotCommands.cs
- Int16Storage.cs
- LayoutManager.cs
- AssemblyUtil.cs
- SmiTypedGetterSetter.cs
- DispatchOperationRuntime.cs
- BindingMemberInfo.cs
- SearchForVirtualItemEventArgs.cs
- NameObjectCollectionBase.cs
- GrammarBuilderDictation.cs
- UnsafeNativeMethods.cs
- DataServiceException.cs
- DataGridItemEventArgs.cs
- ThaiBuddhistCalendar.cs
- BaseTemplateParser.cs
- ImageListImage.cs
- UIElementCollection.cs
- XPathSingletonIterator.cs
- UpDownEvent.cs
- ErrorEventArgs.cs
- SQLInt32Storage.cs