# Class DescriptorDeclaration (3.27.1)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.27.1 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorDeclaration)
- [3.23.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.DescriptorDeclaration)
- [3.15.8](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.DescriptorDeclaration)

    public sealed class DescriptorDeclaration

Provides additional information about the declaration of a descriptor,
such as source location and comments.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DescriptorDeclaration

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Protobuf.Reflection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection)

## Assembly

Google.Protobuf.dll

## Properties

### Descriptor

    public IDescriptor Descriptor { get; }

The descriptor this declaration relates to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.IDescriptor` |   |

### EndColumn

    public int EndColumn { get; }

The end column of the declaration within the source file. This value is 1-based, and
exclusive. (The final character of the declaration is on the column before this value.)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### EndLine

    public int EndLine { get; }

// The end line of the declaration within the source file. This value is 1-based.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### LeadingComments

    public string LeadingComments { get; }

Comments appearing before the declaration. Never null, but may be empty. Multi-line comments
are represented as a newline-separated string. Leading whitespace and the comment marker ("//")
are removed from each line.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### LeadingDetachedComments

    public IReadOnlyList<string> LeadingDetachedComments { get; }

Comments appearing before the declaration, but separated from it by blank
lines. Each string represents a newline-separated paragraph of comments.
Leading whitespace and the comment marker ("//") are removed from each line.
The list is never null, but may be empty. Likewise each element is never null, but may be empty.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

### StartColumn

    public int StartColumn { get; }

The start column of the declaration within the source file. This value is 1-based.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### StartLine

    public int StartLine { get; }

The start line of the declaration within the source file. This value is 1-based.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### TrailingComments

    public string TrailingComments { get; }

Comments appearing after the declaration. Never null, but may be empty. Multi-line comments
are represented as a newline-separated string. Leading whitespace and the comment marker ("//")
are removed from each line.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |