Patrick,

> From looking over a few samples in the docs, it appears that you place it between 
>your scope and class definition:

Well, this may be true for applying attributes on classes and class members, but I was 
wondering this could be done for assemblies.

It turns out that JScript.NET adopts the C#-syntax here:

  [assembly:Foo]

and

  [module:Bar]

I just found this out by trying: it does not seem to be described in the docs. Is it?

Regards,

Stefan
  ----- Original Message ----- 
  From: Patrick Steele 
  To: Moderated discussion of advanced .NET topics. 
  Sent: Monday, September 23, 2002 8:07 PM
  Subject: RE: [ADVANCED-DOTNET] Applying custom attributes to assemblies in 
JScript.NET.


  From looking over a few samples in the docs, it appears that you place
  it between your scope and class definition:

  public Serializable() class JSClass
  {
  }

  Just a guess...

  ---
  Patrick Steele ([EMAIL PROTECTED])
  Lead Software Architect
  Image Process Design



  -----Original Message-----
  From: Stefan Holdermans [mailto:[EMAIL PROTECTED]] 
  Sent: Sunday, September 22, 2002 5:01 AM
  To: [EMAIL PROTECTED]
  Subject: [ADVANCED-DOTNET] Applying custom attributes to assemblies in
  JScript.NET.


  Hi,

  In C# en Visual Basic.NET one can apply custom attributes to assemblies
  by means of

    [assembly:Foo]

  and

    <assembly:Foo>

  respectively, where Foo is the name a custom-attribute class.

  Is there anyway to apply custom attributes to assemblies in JScript.NET?

  Thanks,

  Stefan

  You can read messages from the Advanced DOTNET archive, unsubscribe from
  Advanced DOTNET, or
  subscribe to other DevelopMentor lists at http://discuss.develop.com.

  You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
  subscribe to other DevelopMentor lists at http://discuss.develop.com.


You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to