| 1 |
using Mono.Cecil; |
| 2 |
using Mono.Collections.Generic; |
| 3 |
|
| 4 |
namespace Mono.Documentation.Util |
| 5 |
{ |
| 6 |
public class AttachedEventDefinition : AttachedEventReference, IMemberDefinition |
| 7 |
{ |
| 8 |
private readonly FieldDefinition fieldDefinition; |
| 9 |
|
| 10 |
public AttachedEventDefinition(FieldDefinition fieldDefinition, MetadataToken metadataToken) |
| 11 |
: base(fieldDefinition) |
| 12 |
{ |
| 13 |
this.fieldDefinition = fieldDefinition; |
| 14 |
MetadataToken = metadataToken; |
| 15 |
} |
| 16 |
|
| 17 |
public Collection<CustomAttribute> CustomAttributes => fieldDefinition.CustomAttributes; |
| 18 |
public bool HasCustomAttributes => fieldDefinition.HasCustomAttributes; |
| 19 |
|
| 20 |
public bool IsSpecialName |
| 21 |
{ |
| 22 |
get { return fieldDefinition.IsSpecialName; } |
| 23 |
set { fieldDefinition.IsSpecialName = value; } |
| 24 |
} |
| 25 |
|
| 26 |
public bool IsRuntimeSpecialName |
| 27 |
{ |
| 28 |
get { return fieldDefinition.IsRuntimeSpecialName; } |
| 29 |
set { fieldDefinition.IsRuntimeSpecialName = value; } |
| 30 |
} |
| 31 |
|
| 32 |
public new TypeDefinition DeclaringType |
| 33 |
{ |
| 34 |
get { return fieldDefinition.DeclaringType; } |
| 35 |
set { fieldDefinition.DeclaringType = value; } |
| 36 |
} |
| 37 |
} |
| 38 |
} |