Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / documentation.cs / 1305376 / documentation.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
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 Documentation 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 [....]
// @backupOwner [....]
//---------------------------------------------------------------------
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 Documentation 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
- DataGridViewHitTestInfo.cs
- TransformerTypeCollection.cs
- AuthorizationRule.cs
- ExternalException.cs
- SharedPersonalizationStateInfo.cs
- DataGridViewCellStyle.cs
- Timer.cs
- CodeCompiler.cs
- PermissionListSet.cs
- _UriTypeConverter.cs
- ValueTypeFixupInfo.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DesignerVerb.cs
- WindowsTokenRoleProvider.cs
- CorrelationValidator.cs
- ClipboardData.cs
- EnumConverter.cs
- GradientBrush.cs
- RightsManagementPermission.cs
- XmlException.cs
- ResourceDescriptionAttribute.cs
- ITextView.cs
- RoleService.cs
- TraceLog.cs
- DataBindingCollection.cs
- RequestCacheValidator.cs
- WCFServiceClientProxyGenerator.cs
- XmlWrappingReader.cs
- Button.cs
- RSAProtectedConfigurationProvider.cs
- TextElement.cs
- VariableQuery.cs
- StickyNoteContentControl.cs
- WebBrowserUriTypeConverter.cs
- XmlWrappingReader.cs
- PeerCollaborationPermission.cs
- VirtualizingStackPanel.cs
- DebuggerAttributes.cs
- SqlGatherConsumedAliases.cs
- MinMaxParagraphWidth.cs
- input.cs
- OdbcError.cs
- FileSecurity.cs
- DisplayInformation.cs
- EntityReference.cs
- ExtensionSurface.cs
- CssTextWriter.cs
- StatusBar.cs
- DocumentsTrace.cs
- DateRangeEvent.cs
- MessageCredentialType.cs
- ItemsChangedEventArgs.cs
- ProvidersHelper.cs
- ExeConfigurationFileMap.cs
- KeyValuePairs.cs
- SystemIPInterfaceStatistics.cs
- isolationinterop.cs
- GrammarBuilderWildcard.cs
- Interlocked.cs
- StreamResourceInfo.cs
- BitmapDecoder.cs
- SqlWebEventProvider.cs
- DecimalKeyFrameCollection.cs
- SiteMapSection.cs
- ArrayListCollectionBase.cs
- ImageMetadata.cs
- GPStream.cs
- ReferenceTypeElement.cs
- XPathNodeHelper.cs
- BehaviorEditorPart.cs
- File.cs
- SecureUICommand.cs
- PreviewKeyDownEventArgs.cs
- HtmlProps.cs
- SingleAnimation.cs
- MetadataException.cs
- GrammarBuilderPhrase.cs
- Literal.cs
- SpellerError.cs
- DesignerHelpers.cs
- SortQuery.cs
- FileDialog_Vista.cs
- XPathSingletonIterator.cs
- HybridDictionary.cs
- KernelTypeValidation.cs
- ExceptionValidationRule.cs
- UrlEncodedParameterWriter.cs
- WebRequestModulesSection.cs
- XamlParser.cs
- DelegateTypeInfo.cs
- DbProviderFactories.cs
- _ListenerAsyncResult.cs
- ControlPropertyNameConverter.cs
- ScrollProperties.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataGrid.cs
- WebPartConnectionsConnectVerb.cs
- ConfigurationProperty.cs
- CommentEmitter.cs
- TabControl.cs