/// <summary> /// Initializes a new instance of the <see cref="FieldIdentifier"/> class. /// </summary> /// <param name="name">The valid full name of the field identifier, typically obtained from /// a <see cref="Mono.Cecil.FieldReference"/> parsed via /// <see cref="Extensions.FieldReferenceExtensions"/>.</param> /// <param name="type">The field type.</param> /// <param name="annotation">The field annotations.</param> public FieldIdentifier(string name, Typ type, ItemAnnotation annotation = null) { FieldName = name; Type = type; Annotation = annotation ?? new ItemAnnotation(); }
/// <summary> /// Initializes a new instance of the <see cref="MethodAnnotation"/> class. /// </summary> /// <param name="returnValue">The return value.</param> /// <param name="parameters">The parameters.</param> public MethodAnnotation(ItemAnnotation returnValue = null, IEnumerable <ItemAnnotation> parameters = null) { ReturnValue = returnValue ?? new ItemAnnotation(); Params = parameters ?? new List <ItemAnnotation>(); }