Skip to content

Commit 1a5769c

Browse files
committed
Add documentation to all GetDeclaringType APIs.
1 parent e1cfa01 commit 1a5769c

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/TypeSystem/EventDefinition.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public CustomAttributeHandleCollection GetCustomAttributes()
5757
return new CustomAttributeHandleCollection(_reader, Handle);
5858
}
5959

60+
/// <summary>
61+
/// Returns a handle to the type that declares this event.
62+
/// </summary>
6063
public TypeDefinitionHandle GetDeclaringType()
6164
{
6265
return _reader.GetDeclaringType(Handle);

src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/TypeSystem/FieldDefinition.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ public TType DecodeSignature<TType, TGenericContext>(ISignatureTypeProvider<TTyp
8383
return decoder.DecodeFieldSignature(ref blob);
8484
}
8585

86+
/// <summary>
87+
/// Returns a handle to the type that declares this field.
88+
/// </summary>
8689
public TypeDefinitionHandle GetDeclaringType()
8790
{
8891
return _reader.GetDeclaringType(Handle);

src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/TypeSystem/MethodDefinition.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public MethodImplAttributes ImplAttributes
109109
}
110110
}
111111

112+
/// <summary>
113+
/// Returns a handle to the type that declares this method.
114+
/// </summary>
112115
public TypeDefinitionHandle GetDeclaringType()
113116
{
114117
return _reader.GetDeclaringType(Handle);

src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/TypeSystem/PropertyDefinition.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ public CustomAttributeHandleCollection GetCustomAttributes()
6969
return new CustomAttributeHandleCollection(_reader, Handle);
7070
}
7171

72+
/// <summary>
73+
/// Returns a handle to the type that declares this property.
74+
/// </summary>
7275
public TypeDefinitionHandle GetDeclaringType()
7376
{
7477
return _reader.GetDeclaringType(Handle);

0 commit comments

Comments
 (0)