Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewColumnCollection.cs
- IndexOutOfRangeException.cs
- ConnectionPointCookie.cs
- OSFeature.cs
- HybridWebProxyFinder.cs
- DependencyPropertyConverter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ProfilePropertySettingsCollection.cs
- ConnectionProviderAttribute.cs
- ProfileSettingsCollection.cs
- DataBinding.cs
- CreateUserWizard.cs
- TableAutomationPeer.cs
- TableLayoutPanelCodeDomSerializer.cs
- EntitySetDataBindingList.cs
- BitmapEffectInputData.cs
- TypeUtils.cs
- FontNameEditor.cs
- CrossContextChannel.cs
- TabControl.cs
- RepeaterItemCollection.cs
- ApplicationHost.cs
- DataGridViewDataConnection.cs
- DateTimeStorage.cs
- XslUrlEditor.cs
- _TransmitFileOverlappedAsyncResult.cs
- BinaryMethodMessage.cs
- Delay.cs
- CriticalFinalizerObject.cs
- XNodeValidator.cs
- BamlVersionHeader.cs
- TimeSpan.cs
- TimeSpan.cs
- TabOrder.cs
- ImageAutomationPeer.cs
- RelationshipConstraintValidator.cs
- UIElementAutomationPeer.cs
- Operand.cs
- Html32TextWriter.cs
- XmlDataLoader.cs
- Models.cs
- NativeRightsManagementAPIsStructures.cs
- BeginSelectCardRequest.cs
- TextElementEnumerator.cs
- NameSpaceEvent.cs
- Crypto.cs
- MachineKeySection.cs
- HttpListenerContext.cs
- TextStore.cs
- Property.cs
- UnicodeEncoding.cs
- RangeBase.cs
- PerformanceCounterPermissionAttribute.cs
- StrokeCollection.cs
- ContextProperty.cs
- Constants.cs
- SocketAddress.cs
- ToolStripLabel.cs
- SizeChangedInfo.cs
- RemoteWebConfigurationHostServer.cs
- FilterElement.cs
- RelationshipNavigation.cs
- CodeTypeDeclaration.cs
- HttpSessionStateBase.cs
- SerTrace.cs
- ToolStripControlHost.cs
- XmlTextWriter.cs
- FrameDimension.cs
- EntitySqlQueryCacheKey.cs
- EmptyQuery.cs
- HtmlElementErrorEventArgs.cs
- IPAddressCollection.cs
- Configuration.cs
- Drawing.cs
- CodeAttributeArgument.cs
- SequentialUshortCollection.cs
- ExtensionQuery.cs
- GroupStyle.cs
- HelpInfo.cs
- HwndSourceParameters.cs
- ColumnMapProcessor.cs
- _ScatterGatherBuffers.cs
- Html32TextWriter.cs
- Clipboard.cs
- wmiprovider.cs
- TextSelectionProcessor.cs
- ResourceBinder.cs
- MessageQueuePermissionEntry.cs
- Visitors.cs
- XmlNodeReader.cs
- OracleDataReader.cs
- ValueTypeFixupInfo.cs
- XPathAxisIterator.cs
- CaseInsensitiveComparer.cs
- RuleProcessor.cs
- CriticalHandle.cs
- DataGridViewToolTip.cs
- MetabaseServerConfig.cs
- HttpHeaderCollection.cs
- CollectionViewSource.cs