[Mono-list] Mono - SQLLite - NHibernate

2007-08-23 Thread xiii29



  Hi,

  A long time ago, I've tried to used Mono - SQLLite - NHibernate but  
i found lot af trouble so I've to use other solutions ...


  I've nearly the same needs and I'm wondering if someone has some  
advice or some experience about using mono - nhibernate - SQLLite ...


Thanks !


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] HttpWebResponse : Encoding info (Mono better than .Net???)

2006-11-13 Thread xiii29
On Mono : iso-8859-1 (as String)

On .Net : String.Empty ... and of course there is no Encoding for string.Empty

Selon Kornél Pál <[EMAIL PROTECTED]>:

> >Why in Mono/Linux the field is ok and not on .Net/Windows ?
>
> Please let us know the exact objHttpReponse.CharacterSet value(s) that you
> experienced causing ArgumentException because that helps to understand the
> problem.
>
> Kornél
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Mono List" 
> Sent: Monday, November 13, 2006 1:56 PM
> Subject: [Mono-list] HttpWebResponse : Encoding info (Mono better than
> .Net???)
>
>
> Hi,
>
> My apps make a request on internet with an HttpWebRequest and an
> HttpWebResponse. For some weeks I got trouble with specials char (é, à, ù
> [...]).
>
> I find a solution :
> // -1- get response
> HttpWebResponse objHttpReponse = objHttpRequest.GetResponse();
> // -2- Get the stream
> objStream = objHttpReponse.GetResponseStream();
> // -3- Create a reader to manipulate the stream :
> StreamReader objReader = new StreamReader(objStream,
> Encoding.GetEncoding(objHttpReponse.CharacterSet));
>
> As you can see, I give the CharacterSet to the GetEncoding method.
>
> On Mono/Linux, no trouble, I've something in the CharacterSet and the
> StreamReader  is well created. ("et j'ai mes accents " :-)).
>
> I compiler my apps goes on .Net/Windows and ... :
> System.ArgumentException:  is not a supported encoding name.
> Parameter name: name
>at System.Globalization.EncodingTable.internalGetCodePageFromName(String
> name
> )
>at System.Globalization.EncodingTable.GetCodePageFromName(String name)
>
>
> >From what I see Character Set is empty ...
>
> My question :
> Why in Mono/Linux the field is ok and not on .Net/Windows ?
>
> Thanks !
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] HttpWebResponse : Encoding info (Mono better than .Net ???)

2006-11-13 Thread xiii29
Hi,

My apps make a request on internet with an HttpWebRequest and an
HttpWebResponse. For some weeks I got trouble with specials char (é, à, ù
[...]).

I find a solution :
// -1- get response
HttpWebResponse objHttpReponse = objHttpRequest.GetResponse();
// -2- Get the stream
objStream = objHttpReponse.GetResponseStream();
// -3- Create a reader to manipulate the stream :
StreamReader objReader = new StreamReader(objStream,
Encoding.GetEncoding(objHttpReponse.CharacterSet));

As you can see, I give the CharacterSet to the GetEncoding method.

On Mono/Linux, no trouble, I've something in the CharacterSet and the
StreamReader  is well created. ("et j'ai mes accents " :-)).

I compiler my apps goes on .Net/Windows and ... :
System.ArgumentException:  is not a supported encoding name.
Parameter name: name
   at System.Globalization.EncodingTable.internalGetCodePageFromName(String name
)
   at System.Globalization.EncodingTable.GetCodePageFromName(String name)


>From what I see Character Set is empty ...

My question :
Why in Mono/Linux the field is ok and not on .Net/Windows ?

Thanks !

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Advice for passwrod management

2006-11-09 Thread xiii29

Hi,

My application needs to access to internet for some task. In some area (mine in
particular :-)), I need to use a proxy to access internet. This proxy needs
login and password.

Could some one give me some advice to manage the storing of the password ? At
the present time it is directly in a file ...


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] 1.2 Release Candidate Sources / Call for Testing

2006-11-04 Thread xiii29




Hi,

As I'm downloading, I'm wondering somethings ... Tools that are packed
with mono (like monodoc, etc) are they gone be compiled with gmcs or
mcs ?

Thanks !


Wade Berrier wrote:

  I've posted packages and installers.  Enjoy!

http://mono.ximian.com/monobuild/rc/download-rc/

Wade

On Thu, 2006-11-02 at 19:44 -0700, Wade Berrier wrote:
  
  
Hi,

The source tree has been tagged for 1.2.  The release candidate tarballs
are available here:

http://mono.ximian.com/monobuild/rc/sources-rc/

I'll post some packages and repos later, as well as installers.

Please try your apps, especially winform apps, and keep the bug reports
rolling!

Thanks!

Wade

  
  
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


  




___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Thread interrupt : Not implemented

2006-11-01 Thread xiii29
Hi,

In my apps, I'm using a separate thread to collect data. When it has 
finished, I call the Sleep method.

In some case, I need him to restart immediately.

As the thread is in WaitSleepJoin state, I should call the Interrupt() 
method. But it seems that the method is not implemented on Mono ...

Others ways of doing that ?

Thanks !

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Launching a Mono Apps on Ms.Net

2006-10-31 Thread xiii29


Hi,

I've developed a SWF Apps under Mono and i've tryed it on windows. Everythings
looks nearly fine excepts some little stuff.

One off them is annoying ...
When I launch my apps under Mono/Linux, no console windows ...
When I launch my apps under .Net/Windows, lauch a console then the windows ...

Any idea ?

Ps : is there a way to deisgn SWF on Mono/Linux. I've done directly by hand ...
How to say ... :-) !

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Trouble when generating the doc

2006-10-21 Thread xiii29
Hi,

I'm trying to generate doc from my source code.

When i launch one the tool, I get the same error message :

   1.
  **
  
(/donnees/Applications/Dev/Mono/mono-1.1.17.0/lib/monodoc/monodocer.exe:9689):
  WARNING **: Missing method .ctor in assembly
  
/donnees/Documents/Projets/MonoDevelop/MyProject/src/MyProject/bin/Debug/MyProjectLib.dll,
  type System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
   2.
   
   3.
  ** ERROR **: Can't find custom attr constructor image:
  
/donnees/Documents/Projets/MonoDevelop/MyProject/src/MyProject/bin/Debug/MyProjectLib.dll
  mtoken: 0x0a4b
   4.
  aborting...
   5.

   6.
  =
   7.
  Got a SIGABRT while executing native code. This usually indicates
   8.
  a fatal error in the mono runtime or one of the native libraries
   9.
  used by your application.
  10.
  =
  11.

  12.
  Stacktrace:
  13.

  14.
at (wrapper managed-to-native)
  System.MonoCustomAttrs.GetCustomAttributesInternal
  (System.Reflection.ICustomAttributeProvider,System.Type,bool)
  <0x4>
  15.
at (wrapper managed-to-native)
  System.MonoCustomAttrs.GetCustomAttributesInternal
  (System.Reflection.ICustomAttributeProvider,System.Type,bool)
  <0x>
  16.
at System.MonoCustomAttrs.GetCustomAttributesBase
  (System.Reflection.ICustomAttributeProvider,System.Type) <0x00025>
  17.
at System.MonoCustomAttrs.GetCustomAttributes
  (System.Reflection.ICustomAttributeProvider,bool) <0x00029>
  18.
at System.Reflection.Assembly.GetCustomAttributes (bool) <0xf>
  19.
at Stub.MakeAttributes
  (System.Xml.XmlElement,System.Reflection.ICustomAttributeProvider,bool)
  <0x00073>
  20.
at Stub.AddIndexAssembly
  (System.Reflection.Assembly,System.Xml.XmlElement) <0x000d1>
  21.
at Stub.DoUpdateAssemblies (string,string) <0x00202>
  22.
at Stub.Main (string[]) <0x00488>
  23.
at (wrapper runtime-invoke)
  System.Object.runtime_invoke_void_string[]
  (object,intptr,intptr,intptr) <0x>
  24.

  25.
  Native stacktrace:
  26.

  27.
 
  
/donnees/Applications/Dev/Mono/mono-1.1.17.0/bin/mono(mono_handle_native_sigsegv+0xe6)
  [0x815c436]
  28.
  [0xbfffe440]
  29.
  /lib/i686/libc.so.6(abort+0x101) [0xb7d0e851]
  30.
  /usr/lib/libglib-2.0.so.0(g_logv+0x3ff) [0xb7e93d4f]
  31.
  Abandon (core dumped)

For info, my project is compiled in 2.0.

Thanks !


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] [HS] SVN politics

2006-10-09 Thread xiii29

Hi,

I'm wondering if there is somewhere a place where I can find the SVN politics of
Mono ?

That is to say : How are you using SVN and how do you manage version with it !

Thanks in advance
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Monodev and Nunit

2006-09-10 Thread xiii29

Hi !

It seems that MonoDev has well detect which of my project was a Nunit 
Unit Test project.

But when I try to run, It find no test ...

At the beginning It ask for a specific path which was not existing, so I 
create it. When I try in a console it is working pretty well.

Thanks for any answer.



___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] favorite IDE ?

2006-06-26 Thread xiii29
I'm working with MonoDev since a long time now and the last version (with stetic
include) is more than stable. I do not remember the last freeze ...



Selon rus <[EMAIL PROTECTED]>:

> gedit and a terminal running NAnt works for me.
>
> I like monodevelop but just don't have confidence in it yet. I'm always
> worried that clicking on something will cause it to suddenly freeze and
> crash.
>
> VisualStudio just freaks me out.
>
>
> On Fri, 2006-06-23 at 21:06 +0300, Alex Nedelcu wrote:
> > Pool: what's your favorite IDE for Mono development ?
> >
> > I am using SciTE with my own generated API file, coupled with Make for
> > project building.
> > I found it to be simple, effective, and easy to configure, although I am
> > considering switching to vim.
> > I would've used Monodevelop, but I found it too buggy.
> >
> > Somehow, I do not like full-blown IDEs.
> > Even if I had Windows and VStudio installed, I would still prefer a
> > simple and fast editor.
> > Is anybody else feeling like me ? :)
> >
> > ___
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> --
> 
> If you can't be a good example,
> then you'll just have to be  a horrible warning
> 
> rus at utonium.org.uk http://utonium.com
>
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] One mail for two questions !

2006-05-29 Thread xiii29
Soory ...

What I was trying to say is I've created a new NHibernate Driver that point to
Mono.Data.SqliteClient ...



Selon Miguel de Icaza <[EMAIL PROTECTED]>:

> Hello,
>
> > I've started using Sqlite / NHibernate but I've fighting some troubles :
> >
> > -1- Mono does not include Sqlite.Net (I hope instead I lose lot of time
> > ;-) ) :
> > --> I've started a new Driver to Mono.Data.Sqlite ... (seems ok),
>
> Mono includes Mono.Data.SqliteClient
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] One mail for two questions !

2006-05-29 Thread xiii29

I've started using Sqlite / NHibernate but I've fighting some troubles :

-1- Mono does not include Sqlite.Net (I hope instead I lose lot of time 
;-) ) :

   --> I've started a new Driver to Mono.Data.Sqlite ... (seems ok),

-2- It seems that NHibernate is a Visual Studio Project ... So when i 
recompil with MonoDevelop all the ressource has their fullname changed 
from NHibernate. to  so I've changed the code two 
managed both ...
   --> Same : maybe I've lost time by my unknowledge of MonoDevelop or 
build ...


-3- I'm able to load xml mapping, to create object but when saving It 
seems that I trouble with parameters in the command ... :

   --> As usuable : I'm maybe loosing time with my unknowledge ...

So I'm still figthing :-D   !!!

Thanks for your help !

Miguel de Icaza a écrit :

Hello,

  
I'm looking for a database which can be embedded in my software ... I 
was wondering about FireBird ??



Firebird can be embedded, I set it up once (you might want to Google for
my blog, I believe I had some instructions there).

Alternatively, Sqlite is very very easy to embed.

  

Also : Mapping Object / Relationnel ==> NHibernate ?



There is also now db4objects, its failyr popular.


  


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] One mail for two questions !

2006-05-19 Thread xiii29

Hi !

Two questions for two advices !

I'm looking for a database which can be embedded in my software ... I 
was wondering about FireBird ??


Also : Mapping Object / Relationnel ==> NHibernate ?

If you have some link to help ...

Thanks !

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Linux Installer

2006-02-10 Thread xiii29

Hi,

I've seen in the news that the new version of the window installer 
integrate Gtk#2.8. I'm wondering if the linux installer also integrate 
this version.


For what I see in the Gtk# page on the mono web site, the last version 
is still 2.4 ...


Any info ?

Thanks !

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] MonoDevelop Completion Trouble !

2005-12-30 Thread xiii29

Hi,

I'm using the last MonoDevelop from the last mono installer 1.1.12_1 and 
there is no more auto completion ...


Just wondering ...

Thanks !

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] OpenOffice Support ?

2005-12-17 Thread xiii29




Hi, 
Thanks !

I'm under Linux ... Gone work on it :-) !!


Daniel Morgan wrote:

  I don't know of OpenOffice.org 2.0 has support
for Mono out-of-the-box.  You may have to build it yourself.
  
Also, make sure you download the SDK for Open Office.org 2.0.
  
http://www.go-oo.org/wiki/index.php/Mono_Integration
  
Read the OpenOffice.org 2.0 Developer's Guide
http://api.openoffice.org/docs/DevelopersGuide/ProfUNO/ProfUNO.xhtml
  
I would read Chapter 3.  Particularily, 3.4.4.11 CLI Language Binding. 
This is mostly about using Microsoft .NET to use UNO components.  It
should prove helpful for Mono though.
  
What platform are you using to do this?  Linux or Windows or something
else?
  
  xiii29 <[EMAIL PROTECTED]> wrote:
  
Hi,

I'm wondering if there is something to use OpenOffice Doc in Mono ...

Thanks !


___
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
  
  
  
  __
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
  

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
  




___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] OpenOffice Support ?

2005-12-17 Thread xiii29

Hi,

I'm wondering if there is something to use OpenOffice Doc in Mono ...

Thanks !


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Content of the installer ...

2005-11-23 Thread xiii29

Hello !

I'm wondering how can I knwo the content of the installer ? By content, 
I mean wich version are included ...


As example, i will say that i'm suprise that in the last version, it is 
not MD 0.8 but MD 0.7 ...


Just asking !

Thanks !
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] [Fwd: [Gtk-sharp-list] ToolBar : Deprecated ?]

2005-11-02 Thread xiii29

Hi,

I'm wondering if TooBar is not depreacted ... In fact, when I look in 
MonoDoc, most of the methods are deprecated (all the Add* are !).


So ... Is there something else to use !

Thanks !


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] StartUp Path

2005-10-08 Thread xiii29

Hi,

I'm wondering how can I get the executable path in Mono/Gtk# ...

Maybe simple but ... still looking for !

Thanks for any help !
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] MonoDevelop trouble with task list

2005-10-02 Thread xiii29

Hi,

I'm using since yesterday the 1.1.9.1 of Mono and I got a strange 
behaviour with MonoDevelop ...


When error are listed after compilation there are not listed in the task 
list any more ... (I know I should have no error :-D ) !


Thanks for any help !

Ps : a GTK# question --> I can't find what I should use instead of 
Gtk.Toolbar.AppendWidget() ...



___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] DataView.RowFilter trouble

2005-09-19 Thread xiii29

Hi,

I got a strange problem with RowFilter.

I want filter on a column which type is double.

When I try : MyColumn > 5.5 ==> Unhandled Exception: 
System.FormatException: Unknown char: .


So I try : MyColumn > 5,5 ==> Unhandled Exception: 
System.Data.SyntaxErrorException: Expression '[MyColumn]  >  5,5' is 
invalid.



If someone what I can do ...

Thanks !





___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Trouble with Event ...

2005-08-23 Thread xiii29

Hi,

For my window, I need to know when the user leave widgets ... I started 
by using the "FocusOutEvent" but seems not working with the Gtk.ComboBox 
...


So I've been using the Focused event but this event is not raised when a 
widget is left by selecting with mouse another control ...


My question is : "Which event says : you've been left because user click 
on another widget !"


Thanks !


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Install et Gtk#

2005-04-16 Thread xiii29
Hi !
I'm using the installer to setup mono on my MDK10.1 and it is working fine.
But two questions :
--> Why it is Gtk# 1.0 instead of 1.6 in the installer ?
--> If I want to use 1.6 with the installer ? How can I add it ...
Thansks for your help !
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] GTK# & DataBindings

2004-07-25 Thread Xiii29




Hi,

As I come from the WinForms World, I'm wondering if there is a way to do databindings with Gtk# ?

Or if there is another way to do IHM with Mono !

Thanks !




Re: [Mono-list] Question about attributes

2004-04-29 Thread xiii29

Ok, so there is no recommendation about attributes to use in mono for 
documentation...

I don't want using XML tags as it doesn't work with VB.Net by default (I 
think...) and you have to deliver : assembly and XML file ... So I will create 
some attributes !

Thanks for all the answer !

Thierry


Selon Jonathan Stowe <[EMAIL PROTECTED]>:

> On Thu, 2004-04-29 at 07:56, [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> > First : Thanks for the explanation ;-)
> > 
> > But my question what about which attributes using in order to document
> methods 
> > or function in my code.
> > 
> > For example, if you want the Visual Studio .Net Property Panel to be able
> to 
> > display info about your properties you have to use 
> > System.ComponentModel.Description("The description"). 
> > 
> 
> You can do just the same with mono:
> 
> using System;
> using System.ComponentModel;
>  
>   
> class MyTest
> {
> [Description("Test")]
> public void whatever()
> {
>   
> }
> }
> 
> Will work (i.e. compile) just fine.  Whether or not it is any use is
> whether the tools you want to use can get at this information.  The
> DescriptionAttribute is used for design time purposes (i.e. to display
> in the properties panel of a visual tool) rather than strictly for
> documentation, if you want to autogenerate documentation from your code
> you might me better of using the XML documentation comments rather than
> this.
> 
> Of course you can create your own attributes by inheriting from
> System.Attribute as documented on MSDN and elsewhere.
> 
> /J\
> 
> > This is a Visual Studio .Net rules.
> > 
> > Now my question is : of I want to add documention to my methods, class
> etc... 
> > which meta-attributes do I use ? 
> > 
> > Maybe there is no dedicated attributes and I will have to create my
> owns...
> > 
> > Thierry !
> > 
> > 
> > Selon Jonathan Pryor <[EMAIL PROTECTED]>:
> > 
> > > On Wed, 2004-04-28 at 16:46, Xiii29 wrote:
> > > > I've question about attributes in Mono. I would like to comment my
> > > > assemblys by using attributes (meta-attributes...) and i'm wondering
> if
> > > > there is "rules" (or preconisations...) about which attributes
> using...
> > > 
> > > I'm pretty sure I don't understand your question at all.  But I'll take
> > > a shot anyway...
> > > 
> > > To use an assembly-level attribute, you need to explicitly specify what
> > > the attribute is associated with.  For example:
> > > 
> > >   [assembly: AssemblyTitle ("my title")]
> > >   [assembly: AssemblyVersion ("1.0.*")]
> > > 
> > > The "assembly:" indicates that the attribute applies to the assembly. 
> > > Otherwise it would apply to the next member listed in the file
> > > (delegate, class, structure, etc.) or generate an error (namespaces
> > > don't support attributes).  Similar things can be done for other
> > > elements; for example: "return:" can be used to place an attribute on
> > > the return type of a method, while normally the attribute applies to the
> > > method itself:
> > > 
> > >   [SomeAttribute ("applies to MyMethod")]
> > >   [return: SomeAttribute ("applies to the return type")]
> > >   int MyMethod () {return 42;}
> > > 
> > > As for general rules...  You can only use attributes which can be
> > > applied to an assembly; that is, the attribute you're trying to use must
> > > itself have an AttributeUsage attribute with AttributeTargets.Assembly
> > > specified.  Not all attributes do this; the DllImport attribute, for
> > > example, can only be applied to methods.
> > > 
> > > Aside from that, the normal attribute restrictions apply.  Which means
> > > that attribute positional and named parameters can only be: one of the
> > > CLS-compliant built-in types (bool, byte, char, double, float, int,
> > > long, short, string); System.Type, an enum type; System.Object; or an
> > > array of one of the previous types.
> > > 
> > > See a good C# book, or MSDN, or google, for more information.
> > > 
> > >  - Jon
> > > 
> > > 
> > > 
> > 
> > 
> > ___
> > Mono-list maillist  -  [EMAIL PROTECTED]
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 
> ___
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
> 


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Question about attributes

2004-04-28 Thread xiii29
Hi,

First : Thanks for the explanation ;-)

But my question what about which attributes using in order to document methods 
or function in my code.

For example, if you want the Visual Studio .Net Property Panel to be able to 
display info about your properties you have to use 
System.ComponentModel.Description("The description"). 

This is a Visual Studio .Net rules.

Now my question is : of I want to add documention to my methods, class etc... 
which meta-attributes do I use ? 

Maybe there is no dedicated attributes and I will have to create my owns...

Thierry !


Selon Jonathan Pryor <[EMAIL PROTECTED]>:

> On Wed, 2004-04-28 at 16:46, Xiii29 wrote:
> > I've question about attributes in Mono. I would like to comment my
> > assemblys by using attributes (meta-attributes...) and i'm wondering if
> > there is "rules" (or preconisations...) about which attributes using...
> 
> I'm pretty sure I don't understand your question at all.  But I'll take
> a shot anyway...
> 
> To use an assembly-level attribute, you need to explicitly specify what
> the attribute is associated with.  For example:
> 
>   [assembly: AssemblyTitle ("my title")]
>   [assembly: AssemblyVersion ("1.0.*")]
> 
> The "assembly:" indicates that the attribute applies to the assembly. 
> Otherwise it would apply to the next member listed in the file
> (delegate, class, structure, etc.) or generate an error (namespaces
> don't support attributes).  Similar things can be done for other
> elements; for example: "return:" can be used to place an attribute on
> the return type of a method, while normally the attribute applies to the
> method itself:
> 
>   [SomeAttribute ("applies to MyMethod")]
>   [return: SomeAttribute ("applies to the return type")]
>   int MyMethod () {return 42;}
> 
> As for general rules...  You can only use attributes which can be
> applied to an assembly; that is, the attribute you're trying to use must
> itself have an AttributeUsage attribute with AttributeTargets.Assembly
> specified.  Not all attributes do this; the DllImport attribute, for
> example, can only be applied to methods.
> 
> Aside from that, the normal attribute restrictions apply.  Which means
> that attribute positional and named parameters can only be: one of the
> CLS-compliant built-in types (bool, byte, char, double, float, int,
> long, short, string); System.Type, an enum type; System.Object; or an
> array of one of the previous types.
> 
> See a good C# book, or MSDN, or google, for more information.
> 
>  - Jon
> 
> 
> 


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Question about attributes

2004-04-28 Thread Xiii29
Hi !

I've question about attributes in Mono. I would like to comment my
assemblys by using attributes (meta-attributes...) and i'm wondering if
there is "rules" (or preconisations...) about which attributes using...

Thanks for any help !


-- 
Xiii29 <[EMAIL PROTECTED]>

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list