On May 4, 3:35*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Mon, 04 May 2009 13:26:28 -0700, CSharper <cshar...@gmx.com> wrote:
> > What attribute can I use? I am looking for a way to not to distribute
> > my dll and asking everyone to use it. If I could use default
> > attribute, that would be great. What default attribute would be a best
> > fit to enter name of the method and its description?
>
> You can look at the attributes defined in .NET here:http://msdn.microsoft..com/en-us/lib...attribute.aspx
>
> Scroll down to the "Inheritance Hierarchy" section.
>
> That said, I didn't see anything in there that looks appropriate as a *
> general-purpose attribute. *And given the assumption that anyone writing *
> code that targets your code will need access to your code for testing *
> anyway, I don't think requiring them to reference your code so that they *
> can access your custom attribute is likely to be a serious problem.
>
> Pete
Ok then I will stay with my custom attribute logic. One side
question, there is allterante approach that i was looking at is to
have everyone follow an interface for the implementation. In this
approach all the need to know is the interface definition. Anyway, I
thought attribute is better than interface.