-----Original Message-----
I think attributes are much more "cleaner", they provide you with a greate
flexibility. You need one interface for each "type", using attributes you
can reduce the number by reusing attributes (giving them a property), for
example
[Empty(CanDoThis)]
public class SomeClass
[Empty(CanDoSomethingElse)]
public class SomeClass
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Doug Holland" <
[email protected]> schreef in bericht
I am tempted to agree, however I'm wondering about
performance or other implications which would affect the
decision.
Obviously custom attributes can take arguments which make
them more customizable than empty interfaces.
-----Original Message-----
I prefer custom attributes.
"Doug Holland" <
[email protected]>
wrote
in message
Often you see code where an empty interface is used to
indicate something about the class that realizes it. In
the .NET world this can be done with custom attributes
too, so which is better:
public class SomeClass : IEmptyInterface
or
[Empty]
public class SomeClass
.
.