Re: Making Definitions



On Sun, 09 Mar 2008 16:50:01 -0700, Devon-S <DevonS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am trying to make a definition like FormView.Insert. I have figured out
how to make an eNum, but they seem to be attached to a subclass in VS2005.

What do you mean, "attached to a subclass"?

I have a class that displays three images of three size and I am hoping to
make an ImageSize.Small, ImageSize.Medium, ImageSize.Right.

You may find this page, documenting the "enum" keyword in C#, useful for your cause:
http://msdn2.microsoft.com/en-us/library/sbbt4032.aspx

If after reading the documentation and following its example you have some specific questions, please feel free to post those specific questions here.

Pete
.



Relevant Pages

  • Re: Type alias in C#
    ... Since enumerations are ValueTypes, ... why does your logic for the presence of the keyword "Structure" not apply to the presence of the keyword "Enumeration" as well? ... I just can't understand how an enum can be considered a structure when it only shares one feature of structures: ... And, using your own argument, the MSDN documentation never refers to an enumeration as a "structure". ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How about "pure virtual methods"?
    ... The reason why this feature is missing, is that Python supports building ... fact that B is a subclass of A means that B is supposed to implement the ... > purposes, well then, that's not duplication of code, it's documentation, ... > you just getattr from the class (don't even have to bother instantiating ...
    (comp.lang.python)
  • Re: Type alias in C#
    ... I mean, if you can't trust the definition in the *glossary*, ... The MSDN documentation for System.ValueType uses ... Interestingly enough, I searched the C# glossary, "struct" keyword definition ... public enum AnEnum ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: System.IO and Windows 98
    ... > Am I reading something wrong here? ... structure, delegate, enum) from the namespace listed in the first column? ... >> John, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Design choice: subclassing or "supplementing"
    ... > Foo just for the purpose of overriding bar. ... I'd say any programmer that just ignores 50% of the inherited modules, ... and only searches the documentation for the other half deserves what ... If you subclass, then your "main" program says 'use MyFoo;' and the ...
    (comp.lang.perl.misc)

Loading