Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / documentation.cs / 1 / documentation.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Globalization; using System.Text; using System.Data.Common.Utils; namespace System.Data.Metadata.Edm { ////// Class representing the Documentation associated with an item /// public sealed class Documentation: MetadataItem { #region Fields private string _summary = ""; private string _longDescription = ""; #endregion #region Constructors ////// Default constructor - primarily created for supporting usage of this Do----netation class by SOM. /// internal Documentation() { } #endregion #region Properties ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; } } ////// Gets the Summary for this Documentation instance. /// /// public string Summary { get { return _summary; } internal set { if (value != null) _summary = value; else _summary = ""; } } ////// Gets the LongDescription for this Documentation instance. /// /// public string LongDescription { get { return _longDescription; } internal set { if (value != null) _longDescription = value; else _longDescription = ""; } } ////// This property is required to be implemented for inheriting from MetadataItem. As there can be atmost one /// instance of a nested-Documentation, return the constant "Documentation" as it's identity. /// internal override string Identity { get { return "Documentation"; } } ////// Returns true if this Documentation instance contains only null/empty summary and longDescription /// /// public bool IsEmpty { get { if (string.IsNullOrEmpty(_summary) && string.IsNullOrEmpty(_longDescription) ) { return true; } return false; } } #endregion #region Methods ////// public override string ToString() { return _summary; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Globalization; using System.Text; using System.Data.Common.Utils; namespace System.Data.Metadata.Edm { ////// Class representing the Documentation associated with an item /// public sealed class Documentation: MetadataItem { #region Fields private string _summary = ""; private string _longDescription = ""; #endregion #region Constructors ////// Default constructor - primarily created for supporting usage of this Do----netation class by SOM. /// internal Documentation() { } #endregion #region Properties ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; } } ////// Gets the Summary for this Documentation instance. /// /// public string Summary { get { return _summary; } internal set { if (value != null) _summary = value; else _summary = ""; } } ////// Gets the LongDescription for this Documentation instance. /// /// public string LongDescription { get { return _longDescription; } internal set { if (value != null) _longDescription = value; else _longDescription = ""; } } ////// This property is required to be implemented for inheriting from MetadataItem. As there can be atmost one /// instance of a nested-Documentation, return the constant "Documentation" as it's identity. /// internal override string Identity { get { return "Documentation"; } } ////// Returns true if this Documentation instance contains only null/empty summary and longDescription /// /// public bool IsEmpty { get { if (string.IsNullOrEmpty(_summary) && string.IsNullOrEmpty(_longDescription) ) { return true; } return false; } } #endregion #region Methods ////// public override string ToString() { return _summary; } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryWriter.cs
- WindowsIdentity.cs
- SqlDataSourceConfigureFilterForm.cs
- WebPart.cs
- FontStyleConverter.cs
- ActionItem.cs
- Animatable.cs
- NameNode.cs
- TargetPerspective.cs
- MetadataItemEmitter.cs
- Membership.cs
- ToolTipService.cs
- ResourceDisplayNameAttribute.cs
- DrawingContextDrawingContextWalker.cs
- PageSettings.cs
- ApplyTemplatesAction.cs
- ToolStripRenderer.cs
- PresentationAppDomainManager.cs
- ExtensionQuery.cs
- Propagator.ExtentPlaceholderCreator.cs
- OpacityConverter.cs
- ProcessHost.cs
- BuildDependencySet.cs
- FtpWebResponse.cs
- OutputCacheSettingsSection.cs
- StringFunctions.cs
- UpdateProgress.cs
- InitializerFacet.cs
- IdentifierCreationService.cs
- BrowserCapabilitiesFactoryBase.cs
- DataControlFieldTypeEditor.cs
- JsonQNameDataContract.cs
- VectorCollection.cs
- ProcessThreadCollection.cs
- Matrix3D.cs
- WebPartChrome.cs
- InputBinder.cs
- Invariant.cs
- ConstantCheck.cs
- _DigestClient.cs
- XmlAttributeCache.cs
- FileDialogCustomPlace.cs
- FixedStringLookup.cs
- TempFiles.cs
- StylusShape.cs
- Decorator.cs
- SafeViewOfFileHandle.cs
- TabletDeviceInfo.cs
- DefaultAsyncDataDispatcher.cs
- WebPartHeaderCloseVerb.cs
- ExtractedStateEntry.cs
- SoapIgnoreAttribute.cs
- DataGridViewTextBoxColumn.cs
- TextCollapsingProperties.cs
- SQLDateTimeStorage.cs
- XmlCountingReader.cs
- TaiwanCalendar.cs
- CodeCastExpression.cs
- TextFormatterImp.cs
- Splitter.cs
- DynamicValidatorEventArgs.cs
- SplayTreeNode.cs
- DesignTimeValidationFeature.cs
- Point3DCollection.cs
- CompiledIdentityConstraint.cs
- RequestTimeoutManager.cs
- MarkupWriter.cs
- VSWCFServiceContractGenerator.cs
- SingleAnimation.cs
- UTF8Encoding.cs
- TableLayoutPanel.cs
- SolidBrush.cs
- WinInetCache.cs
- ListSourceHelper.cs
- KeyValueSerializer.cs
- LinkedResource.cs
- AssemblyAttributes.cs
- SafeThreadHandle.cs
- GenericIdentity.cs
- ClientProxyGenerator.cs
- References.cs
- ArrangedElementCollection.cs
- ProcessingInstructionAction.cs
- ConfigXmlWhitespace.cs
- GenericQueueSurrogate.cs
- InputBinding.cs
- NTAccount.cs
- Part.cs
- XmlILCommand.cs
- StaticFileHandler.cs
- XamlWrappingReader.cs
- TagMapCollection.cs
- X509KeyIdentifierClauseType.cs
- ClientScriptManagerWrapper.cs
- CollectionDataContract.cs
- TabPageDesigner.cs
- _NetRes.cs
- DrawingContext.cs
- Semaphore.cs
- ModelPropertyImpl.cs