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
- Form.cs
- FontDialog.cs
- Transform3D.cs
- SmtpNegotiateAuthenticationModule.cs
- DataControlPagerLinkButton.cs
- RowUpdatingEventArgs.cs
- SystemTcpConnection.cs
- IriParsingElement.cs
- IsolationInterop.cs
- ProtectedProviderSettings.cs
- NegotiateStream.cs
- ConfigPathUtility.cs
- BufferedGraphics.cs
- SubMenuStyleCollection.cs
- MetadataPropertyAttribute.cs
- XsltQilFactory.cs
- Process.cs
- SimpleType.cs
- SelectionEditingBehavior.cs
- CroppedBitmap.cs
- MetadataArtifactLoaderCompositeResource.cs
- BroadcastEventHelper.cs
- ObjectStateManager.cs
- FixedPageProcessor.cs
- ClientConvert.cs
- MessageBox.cs
- VirtualDirectoryMapping.cs
- DriveNotFoundException.cs
- WebPartEditorCancelVerb.cs
- DbDataSourceEnumerator.cs
- DataKey.cs
- PreDigestedSignedInfo.cs
- XmlIlGenerator.cs
- ProcessHostMapPath.cs
- InfoCardSchemas.cs
- SqlProviderManifest.cs
- AttributeSetAction.cs
- DataKey.cs
- Cursor.cs
- DetailsViewInsertedEventArgs.cs
- LexicalChunk.cs
- XmlDataSourceNodeDescriptor.cs
- HandlerMappingMemo.cs
- InnerItemCollectionView.cs
- SR.cs
- WorkflowMarkupSerializationProvider.cs
- CodePropertyReferenceExpression.cs
- MethodBuilderInstantiation.cs
- Geometry3D.cs
- DropShadowEffect.cs
- DbConnectionPoolCounters.cs
- SqlPersonalizationProvider.cs
- PriorityBindingExpression.cs
- Authorization.cs
- ZipArchive.cs
- PolicyStatement.cs
- Rules.cs
- WebPartEditVerb.cs
- MultiBindingExpression.cs
- StylusPointPropertyUnit.cs
- Column.cs
- DrawingBrush.cs
- AccessorTable.cs
- SHA384.cs
- SelectorAutomationPeer.cs
- TextSchema.cs
- SystemIPAddressInformation.cs
- MemberInfoSerializationHolder.cs
- BaseParser.cs
- LinearQuaternionKeyFrame.cs
- WebSysDisplayNameAttribute.cs
- DataServiceKeyAttribute.cs
- MdiWindowListStrip.cs
- HttpRuntime.cs
- ConstraintStruct.cs
- SingleAnimationUsingKeyFrames.cs
- InfoCardSymmetricAlgorithm.cs
- InputBuffer.cs
- BindableAttribute.cs
- FieldInfo.cs
- SafeTokenHandle.cs
- DebuggerAttributes.cs
- ResolveNameEventArgs.cs
- BigInt.cs
- CqlBlock.cs
- DetailsViewDeletedEventArgs.cs
- remotingproxy.cs
- SecurityCredentialsManager.cs
- arabicshape.cs
- ObjectIDGenerator.cs
- OracleInfoMessageEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- XamlFxTrace.cs
- SignedPkcs7.cs
- RTTypeWrapper.cs
- AppDomainFactory.cs
- DefaultValueTypeConverter.cs
- TypedElement.cs
- _LazyAsyncResult.cs
- RelatedPropertyManager.cs