public interface IObjectTypeData

assembly RefDocGen
namespace RefDocGen.CodeElements.Types.Abstract

Represents data of a value, reference or interface type; including its members.
Note: This interface doesn't represent enum types - see IEnumTypeData.

Properties

public AccessModifier AccessModifier { get; } #
Inherited from ITypeDeclaration
Access modifier of the type.
public IEnumerable<IMemberData> AllMembers { get; } #
Inherited from ITypeDeclaration
Collection of all members declared in the type.
Remarks
Note that nested types aren't included, see ITypeDeclaration.NestedTypes
public string Assembly { get; } #
Inherited from ITypeDeclaration
Name of the assembly containing the type.
public IReadOnlyList<IAttributeData> Attributes { get; } #
Inherited from ITypeDeclaration
Collection of attributes applied to the type.
Remarks
Note that the compiler generated attributes are not included.
public ITypeNameData BaseType { get; } #
Inherited from ITypeDeclaration
Base type of the type. Returns null, if the type has no base type (i.e. it's an interface or object type).
public IEnumerable<IConstructorData> Constructors { get; } #
Collection of constructors contained in the type.
public ITypeDeclaration DeclaringType { get; } #
Inherited from ITypeDeclaration
The type that contains the declaration of this type.
null if the type is not nested.
public IEnumerable<IEventData> Events { get; } #
Collection of indexers contained in the type.
public XElement ExampleDocComment { get; } #
Inherited from ITypeDeclaration
'example' doc comment provided to the type.
public IEnumerable<IFieldData> Fields { get; } #
Collection of fields contained in the type.
public string FullName { get; } #
Inherited from ITypeNameBaseData
Full name of the type, including its namespace.
Note: For generic types, it's doesn't include any info about the generic types.
Examples:
  • for string, it returns "System.String"
  • for List<string>, it returns "System.Collections.Generic.List"
public bool HasTypeParameters { get; } #
Inherited from ITypeNameBaseData
Checks whether the type has any type parameters.
public string Id { get; } #
Inherited from ITypeNameBaseData
Identifier of the type. Consists of the type name and generic parameters (if present).
public IEnumerable<IIndexerData> Indexers { get; } #
Collection of indexers contained in the type.
public IReadOnlyList<ITypeNameData> Interfaces { get; } #
Inherited from ITypeDeclaration
Interfaces implemented by the current type.
public bool IsAbstract { get; } #
Checks if the type is abstract. True for abstract classes and interfaces.
public bool IsByRefLike { get; } #
Indicates whether the type is a byref-like structure.
public bool IsInterface { get; } #
Inherited from ITypeDeclaration
Indicates whether the type is an interface or not.
public bool IsNested { get; } #
Inherited from ITypeDeclaration
Indicates whether the type is a nested type.
public bool IsSealed { get; } #
Checks if the type is sealed (i.e. cannot be inherited)
public ObjectTypeKind Kind { get; } #
Kind of the type.
public IEnumerable<IMethodData> Methods { get; } #
Collection of methods contained in the type.
public string Namespace { get; } #
Inherited from ITypeNameBaseData
Gets the namespace of the type.
Returns empty string, if the current instance represents a generic type parameter or if the type doesn't have any corresponding namespace.
public IEnumerable<IDelegateTypeData> NestedDelegates { get; } #
Collection of nested delegate types contained in the type.
public IEnumerable<IEnumTypeData> NestedEnums { get; } #
Collection of nested enum types contained in the type.
public IEnumerable<IObjectTypeData> NestedObjectTypes { get; } #
Collection of nested object types contained in the type.
public IEnumerable<ITypeDeclaration> NestedTypes { get; } #
Inherited from ITypeDeclaration
Collection of all nested types declared in the type.
public IEnumerable<IOperatorData> Operators { get; } #
Collection of operators contained in the type.
public IEnumerable<IPropertyData> Properties { get; } #
Collection of properties contained in the type.
public XElement RemarksDocComment { get; } #
Inherited from ITypeDeclaration
'remarks' doc comment provided to the type.
public IEnumerable<XElement> SeeAlsoDocComments { get; } #
Inherited from ITypeDeclaration
Collection of 'seealso' doc comments for the member.
public string ShortName { get; } #
Inherited from ITypeNameBaseData
Short name of the type; doesn't include its namespace.
Note: For generic types, it's doesn't include any info about the generic types.
Examples:
  • for string, it returns "String"
  • for List<string>, it returns "List"
public XElement SummaryDocComment { get; } #
Inherited from ITypeDeclaration
'summary' documentation comment provided to the type.
public Type TypeObject { get; } #
Inherited from ITypeNameBaseData
Type object representing the type.
public IReadOnlyList<ITypeParameterData> TypeParameters { get; } #
Inherited from ITypeDeclaration
Collection of generic type parameters declared in the type, ordered by their index.