1 //---------------------------------------------------------------------
2 // <copyright file="Documentation.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
11 using System
.Collections
.Generic
;
12 using System
.Data
.Common
;
13 using System
.Diagnostics
;
14 using System
.Globalization
;
16 using System
.Data
.Common
.Utils
;
18 namespace System
.Data
.Metadata
.Edm
21 /// Class representing the Documentation associated with an item
23 public sealed class Documentation
: MetadataItem
26 private string _summary
= "";
27 private string _longDescription
= "";
32 /// Default constructor - primarily created for supporting usage of this Documentation class by SOM.
34 internal Documentation()
42 /// Returns the kind of the type
44 public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; }
}
47 /// Gets the Summary for this Documentation instance.
66 /// Gets the LongDescription for this Documentation instance.
69 public string LongDescription
73 return _longDescription
;
78 _longDescription
= value;
80 _longDescription
= "";
86 /// This property is required to be implemented for inheriting from MetadataItem. As there can be atmost one
87 /// instance of a nested-Documentation, return the constant "Documentation" as it's identity.
89 internal override string Identity
93 return "Documentation";
98 /// Returns true if this Documentation instance contains only null/empty summary and longDescription
105 if (string.IsNullOrEmpty(_summary
) && string.IsNullOrEmpty(_longDescription
) )
121 public override string ToString()