2005-08-11 晴れ // C# public enum TestEnum { Test1, Test2, Test3, Test4 } public class IntToEnum { public IntToEnum() { int testInt; TestEnum testEnum; testInt = 0x100; try { testEnum = (TestEnum)testInt; // ←例外発生しないらしい } catch { throw; } } } へー。型にかなり厳しいのにコレはOKなのか。