[Mono-devel-list] A question regarding C#

Aleksandar Dezelin dezelin32 at fastmail.fm
Mon Dec 27 07:48:13 EST 2004


Hi,

I have one question regrding C# enums:

	When I declare a enum and mark it with FlagsAttribute to enable 
bitwiseing, like this:

[Flags]
public enum FileDialogOptions {
	None = 0,
	AddExtension = 1,
	RemoveExtension = 2,
	Magnify = 4
}

public FileDialogOptions options =
	FileDialogOptions.AddExtension | FileDialogOptions.Magnify;


...how can I get or set one of the options?


Cheers,
Aleksandar Dezelin

-- 
Linux is like wigwham - no windows, no gates, and apache inside...



More information about the Mono-devel-list mailing list