Ne arayalım?

ARAMIZA KATILIN

BİZE ULAŞIN

Adres:

E-posta:

host/bin/bilisimlife.dll

iletisim@bilisimlife.net




 
Rserit
Developer
       
 1026  
 278

Cannot apply the custom attribute on method the attribute cannot be applied to a abstract member Hatası

Selamlar,
PostSharp ile bir aspect oluşturduğunuzda bu attribute direkt olarak abstract bir metoda uygulanmıyor. Bunun için şu özelliği vermeniz gerek:

[LoggingAttribute(AttributeInheritance = MulticastInheritance.Multicast)]

Inheritance verip çalışmasını sağlayabiliyoruz. Aksi halde şu hatayı alacaksınız:

Cannot apply the custom attribute "TestProject.LoggingAttribute" on method "TestProject.IProxyExtensionStrategy.Search(string product)": the attribute cannot be applied to a abstract member.

İyi çalışmalar,
Recep

Developer.