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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncodedStreamFactory.cs
- WebPartEditVerb.cs
- AlignmentYValidation.cs
- DirectoryInfo.cs
- Expression.cs
- PackageFilter.cs
- Compiler.cs
- ToolStripDropDownClosingEventArgs.cs
- NativeMethods.cs
- FixedBufferAttribute.cs
- MyContact.cs
- TreeChangeInfo.cs
- DropShadowEffect.cs
- SmtpFailedRecipientsException.cs
- XmlSchemaComplexContentExtension.cs
- linebase.cs
- KeyEventArgs.cs
- AuthStoreRoleProvider.cs
- DbDataRecord.cs
- Operator.cs
- Highlights.cs
- FileLevelControlBuilderAttribute.cs
- LifetimeManager.cs
- HandlerBase.cs
- LOSFormatter.cs
- ProtectedConfiguration.cs
- TimeoutException.cs
- OracleTransaction.cs
- PtsContext.cs
- TextBox.cs
- ControlsConfig.cs
- WindowShowOrOpenTracker.cs
- WindowsSolidBrush.cs
- sqlmetadatafactory.cs
- EntityDataSourceDataSelectionPanel.cs
- WebPartUtil.cs
- UInt64Converter.cs
- ToolStripStatusLabel.cs
- ItemAutomationPeer.cs
- AmbientLight.cs
- MailAddress.cs
- ToolStripItemTextRenderEventArgs.cs
- View.cs
- Column.cs
- ServiceDebugBehavior.cs
- SynchronizedDispatch.cs
- AbsoluteQuery.cs
- ImageButton.cs
- RuntimeHelpers.cs
- OracleRowUpdatingEventArgs.cs
- DiscoveryReferences.cs
- MenuCommand.cs
- ModelTreeEnumerator.cs
- LineVisual.cs
- GridViewColumn.cs
- AdapterUtil.cs
- BrowserDefinition.cs
- AssociatedControlConverter.cs
- SystemIPv4InterfaceProperties.cs
- StateWorkerRequest.cs
- MissingSatelliteAssemblyException.cs
- SchemaElement.cs
- IconConverter.cs
- ControlCachePolicy.cs
- BaseConfigurationRecord.cs
- SQLDouble.cs
- XmlSchemaSimpleTypeUnion.cs
- NotConverter.cs
- DashStyle.cs
- AssociationSet.cs
- LinqDataView.cs
- keycontainerpermission.cs
- MSG.cs
- ActivityTrace.cs
- ToolboxComponentsCreatingEventArgs.cs
- HijriCalendar.cs
- CollectionConverter.cs
- AuthenticationSection.cs
- GPRECT.cs
- IsolatedStorageFileStream.cs
- MultipleViewProviderWrapper.cs
- TransactionChannelFactory.cs
- Compress.cs
- MatrixAnimationBase.cs
- CaretElement.cs
- ConvertersCollection.cs
- ThreadExceptionEvent.cs
- SortKey.cs
- DnsPermission.cs
- NullableBoolConverter.cs
- Msmq4PoisonHandler.cs
- PrintEvent.cs
- TextBlock.cs
- TextTreeExtractElementUndoUnit.cs
- UrlUtility.cs
- SqlDataSourceCommandEventArgs.cs
- TableParagraph.cs
- ListViewGroupConverter.cs
- ListParaClient.cs
- safex509handles.cs