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
- TransactionFilter.cs
- HttpResponse.cs
- ManagementException.cs
- TreeNode.cs
- DataGridViewCellStyle.cs
- IISMapPath.cs
- Setter.cs
- XmlSerializerFactory.cs
- PageResolution.cs
- DrawListViewSubItemEventArgs.cs
- DataBindingHandlerAttribute.cs
- SingleAnimation.cs
- TypedTableHandler.cs
- Scheduler.cs
- OpacityConverter.cs
- MarkupCompilePass1.cs
- LoadItemsEventArgs.cs
- CommentEmitter.cs
- MobileControlsSectionHandler.cs
- Point3DConverter.cs
- IISUnsafeMethods.cs
- ManifestResourceInfo.cs
- Context.cs
- EndOfStreamException.cs
- FileNotFoundException.cs
- SamlAdvice.cs
- AddInProcess.cs
- ImmComposition.cs
- FileReader.cs
- WebEventCodes.cs
- Util.cs
- DirectionalLight.cs
- AspNetHostingPermission.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ProjectedWrapper.cs
- IntSecurity.cs
- ExceptionUtility.cs
- ApplicationGesture.cs
- GregorianCalendarHelper.cs
- _TransmitFileOverlappedAsyncResult.cs
- UpdateTracker.cs
- MessageContractAttribute.cs
- ThreadPool.cs
- AmbientLight.cs
- ToolTipService.cs
- SmiRecordBuffer.cs
- TransformProviderWrapper.cs
- StylusCaptureWithinProperty.cs
- MultiBindingExpression.cs
- TextCompositionManager.cs
- KeyValueConfigurationElement.cs
- TextTrailingCharacterEllipsis.cs
- DispatcherExceptionFilterEventArgs.cs
- ImageMetadata.cs
- CollectionEditor.cs
- DashStyles.cs
- StringConcat.cs
- PartialArray.cs
- TableItemStyle.cs
- AssemblyName.cs
- Lasso.cs
- QualifierSet.cs
- SiteMapDataSourceView.cs
- Invariant.cs
- Page.cs
- XmlDomTextWriter.cs
- DefaultSection.cs
- SqlErrorCollection.cs
- ListBindableAttribute.cs
- TextShapeableCharacters.cs
- Message.cs
- COM2ColorConverter.cs
- TypeRestriction.cs
- BrowserCapabilitiesFactory.cs
- FormatSettings.cs
- VsPropertyGrid.cs
- RegexTree.cs
- TransformerInfoCollection.cs
- SizeConverter.cs
- XsltOutput.cs
- CqlErrorHelper.cs
- FilteredDataSetHelper.cs
- ExpressionList.cs
- TryLoadRunnableWorkflowCommand.cs
- SortedList.cs
- StrokeSerializer.cs
- SecurityCapabilities.cs
- DataTableCollection.cs
- PrimitiveDataContract.cs
- FillRuleValidation.cs
- RelatedView.cs
- TypeToken.cs
- WebPartsPersonalizationAuthorization.cs
- RuntimeResourceSet.cs
- CombinedHttpChannel.cs
- DBNull.cs
- MetadataCollection.cs
- HashJoinQueryOperatorEnumerator.cs
- BoolExpression.cs
- IriParsingElement.cs