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
- ToolStripDesignerAvailabilityAttribute.cs
- FieldAccessException.cs
- HWStack.cs
- ProcessManager.cs
- GroupQuery.cs
- XmlSchemaSet.cs
- ImpersonationContext.cs
- Point3DKeyFrameCollection.cs
- HtmlInputFile.cs
- CollectionChangedEventManager.cs
- EditorPart.cs
- FacetValueContainer.cs
- SafeHandles.cs
- PageTheme.cs
- SqlParameterizer.cs
- baseshape.cs
- Int32KeyFrameCollection.cs
- _CommandStream.cs
- ManagementNamedValueCollection.cs
- ItemMap.cs
- XmlText.cs
- XmlNotation.cs
- SqlException.cs
- FormClosedEvent.cs
- DynamicRendererThreadManager.cs
- StylusPointPropertyInfoDefaults.cs
- SqlInternalConnectionSmi.cs
- Point3DAnimation.cs
- srgsitem.cs
- DynamicILGenerator.cs
- SystemWebSectionGroup.cs
- FieldNameLookup.cs
- Quaternion.cs
- TextServicesProperty.cs
- Base64Stream.cs
- Mapping.cs
- CroppedBitmap.cs
- CounterCreationData.cs
- GrammarBuilderRuleRef.cs
- Condition.cs
- OrderedDictionary.cs
- Control.cs
- ExpressionVisitor.cs
- SymmetricCryptoHandle.cs
- PropertyRecord.cs
- SystemEvents.cs
- Pen.cs
- UpdatePanel.cs
- SafeRightsManagementQueryHandle.cs
- EDesignUtil.cs
- SafeThemeHandle.cs
- ClientProtocol.cs
- PersonalizationEntry.cs
- Annotation.cs
- TextServicesProperty.cs
- XmlQueryContext.cs
- SettingsAttributeDictionary.cs
- SerializerWriterEventHandlers.cs
- GridViewSortEventArgs.cs
- GlyphRun.cs
- OracleBoolean.cs
- InternalSafeNativeMethods.cs
- DomainUpDown.cs
- Deserializer.cs
- nulltextnavigator.cs
- BinaryWriter.cs
- LoginUtil.cs
- SQLInt32Storage.cs
- DecimalAnimationBase.cs
- XMLSchema.cs
- PingOptions.cs
- CustomError.cs
- FrameworkObject.cs
- ButtonChrome.cs
- QilList.cs
- DataSourceProvider.cs
- SelectionRangeConverter.cs
- ActivityDesignerResources.cs
- objectquery_tresulttype.cs
- FileRecordSequenceCompletedAsyncResult.cs
- FlowDocumentPageViewerAutomationPeer.cs
- AssociationTypeEmitter.cs
- XmlSerializableWriter.cs
- SignedXml.cs
- EntityViewContainer.cs
- RealProxy.cs
- PinnedBufferMemoryStream.cs
- ColumnMapCopier.cs
- SR.cs
- ISCIIEncoding.cs
- GreaterThanOrEqual.cs
- InputScope.cs
- ObjectStateManagerMetadata.cs
- PathTooLongException.cs
- StringDictionaryCodeDomSerializer.cs
- SoapAttributes.cs
- MatrixTransform3D.cs
- TextServicesPropertyRanges.cs
- SortFieldComparer.cs
- SocketAddress.cs