Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Markup / XamlSerializerUtil.cs / 1305600 / 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
- Semaphore.cs
- Sorting.cs
- DataErrorValidationRule.cs
- AbandonedMutexException.cs
- assemblycache.cs
- FaultDescriptionCollection.cs
- ByeOperationAsyncResult.cs
- WindowsListViewGroup.cs
- MessageDispatch.cs
- ByteArrayHelperWithString.cs
- ValidationSummary.cs
- InheritanceService.cs
- InvokeMethod.cs
- LayoutTableCell.cs
- SecurityNegotiationException.cs
- RelationshipEndMember.cs
- PersonalizationEntry.cs
- RectangleConverter.cs
- GeneralTransform2DTo3D.cs
- ConfigErrorGlyph.cs
- LinearKeyFrames.cs
- GrammarBuilderDictation.cs
- EntityContainer.cs
- DependencyPropertyConverter.cs
- DtdParser.cs
- ColorContext.cs
- CustomExpression.cs
- ClientRuntimeConfig.cs
- ButtonBase.cs
- CompilerLocalReference.cs
- Root.cs
- FormViewPagerRow.cs
- TemplateEditingVerb.cs
- FixedBufferAttribute.cs
- ComplusTypeValidator.cs
- AnchoredBlock.cs
- Style.cs
- CustomValidator.cs
- SqlDataReader.cs
- ClientBuildManager.cs
- XmlDocumentFragment.cs
- OpCodes.cs
- BitmapFrameDecode.cs
- HandlerFactoryCache.cs
- WpfXamlLoader.cs
- XmlSchemaDatatype.cs
- HttpCapabilitiesEvaluator.cs
- GlyphCache.cs
- FileSystemWatcher.cs
- PageAsyncTaskManager.cs
- FtpCachePolicyElement.cs
- DiscoveryRequestHandler.cs
- PageAsyncTaskManager.cs
- _AuthenticationState.cs
- SemaphoreSecurity.cs
- FixedSOMImage.cs
- CannotUnloadAppDomainException.cs
- Clause.cs
- WebPartCancelEventArgs.cs
- smtpconnection.cs
- Transform.cs
- ClockGroup.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DetailsViewUpdatedEventArgs.cs
- ScriptComponentDescriptor.cs
- SimpleColumnProvider.cs
- TableCellCollection.cs
- DataSourceView.cs
- CodeFieldReferenceExpression.cs
- ChtmlPhoneCallAdapter.cs
- ConfigurationConverterBase.cs
- UnsafeNativeMethodsTablet.cs
- EventLogPermissionEntryCollection.cs
- GroupItemAutomationPeer.cs
- BuildResultCache.cs
- NullableIntMinMaxAggregationOperator.cs
- Vertex.cs
- JournalEntry.cs
- CounterSample.cs
- UniqueSet.cs
- VectorCollection.cs
- SaveFileDialogDesigner.cs
- PrimaryKeyTypeConverter.cs
- WebEventTraceProvider.cs
- ContextMarshalException.cs
- DCSafeHandle.cs
- DataGridViewLinkCell.cs
- TemplateControl.cs
- SystemIPGlobalProperties.cs
- TextRangeSerialization.cs
- TextOptionsInternal.cs
- MimeBasePart.cs
- StaticFileHandler.cs
- AttachedAnnotationChangedEventArgs.cs
- HierarchicalDataBoundControlAdapter.cs
- OracleParameterBinding.cs
- ViewBox.cs
- securitymgrsite.cs
- Collection.cs
- StaticContext.cs