Thanks so much. I wasn't sure how to word my question, but
thanks a
lot. Youa nswered it perfectly. I'm working on a framework
right now,
and I have to create an OpenGL wrapper class and I'm doing
it across
multiple files, and I needed the class to be CLS compliant,
but I
didn't know whether or not I had to put
"[CLSCompliant(true)]" in front
of each part of the class.
Marty Thompson wrote:
> I think you're asking if you apply an attribute to one
partial class, do you
> have to do it to all parts. If that is what you are
actually asking, then
> the answer is no. In fact if you did that, you will
get a compilation error
> complaining about duplicate attributes.
>
> If I wasn't interpreting your question correctly, let
us know.
>
> On 2/27/06, R. Aiken <rodger.aiken gmail.com> wrote:
> >
> >
> > When using the 'partial' keyword to define a
class or structure
> > across multiple files: If you use an attribute
one part of a class
> > definition, do you have to use that attribute part
of the class
> > definition?
> >
> >
> >
> >
>
> ------=_Part_6796_15619698.1141068237822
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 787
>
> I think you're asking if you apply an attribute to one
partial class, do you have to do it to all parts.
If that is what you are actually asking, then the answer is
no. In fact if you did that, you will get a
compilation error complaining about duplicate attributes.
> <br><br>If I wasn't interpreting your
question correctly, let us
know.<br><br><div><span
class="gmail_quote">On 2/27/06, <b
class="gmail_sendername">R. Aiken</b>
<<a href="mailto:rodger.aiken gmail.com">rodger.aiken gmail.com
> </a>> wrote:</span><blockquote
class="gmail_quote" style="border-left:
1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;
padding-left: 1ex;"><br>When using the
'partial' keyword to define a class
or structure<br>
> <br>
>
> ------=_Part_6796_15619698.1141068237822--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|