Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Apr 26, 2012 3:25:29 AM |
Updated | Apr 26, 2012 3:37:40 AM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using System; class A { static void Main() { Foo(typeof(DayOfWeek)); } static void Foo(Type e) { var values = (object[]) e.GetEnumValues(); // InvalidCastException } }