次のような同じタイプの属性を複数含むメソッドのすべての属性を読み取ろうとしています。
[field(Feld = "x86", Index = 1)]
[field(Feld = "x93", Index = 2)]
...
[field(Feld = "x107", Index = 9)]
public string Methodename() {}
属性を次のように読み取ります。
Attribute mAttr = Attribute.GetCustomAttribute
(methodInfo, typeof (fieldAttribute), false) as fieldAttribute;
これはAmbiguousMatchExceptionをスローします。複数の属性を読み取るにはどうすればよいですか?
ありがとうございました