Stef,
Generally speaking, you should declare your constants where they make
sense. If you have a constant that is particular to a class, you should
declare it with that class, and not with a separate class just for
constants. Context is important here, I believe.
C# does not have the concept of a header file. If you need to use a
constant that is defined in a class in another assembly, then you need to
reference that assembly.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"stef" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello
>
> I would like to use const declaration in the same manner as C does (in
> a .h file)
> How can I do that ?
>
> For now, I declare a class which contains only all my const
> declarations... but sounds bad 
>
> Do you have any ideas ?
>
>
> thanks...
>