Instantiating Classes with Internal Constructors (C#) (rvenables.com) 7 points by masonry 16y ago ↗ HN
[–] syntatic 16y ago ↗ Part of RMock.cs was not genercized.Instead of this: 47: FieldInfo[] EventFields = typeof(DataReceivedEventArgs)It should be this: 47: FieldInfo[] EventFields = typeof(T) [–] masonry 16y ago ↗ Fixed (with one other bug)
[–] pmichaud 16y ago ↗ Neat fix, but wow, what acrobatics to do something that should be simple. Tsk, tsk C#.
3 comments
[ 2.4 ms ] story [ 18.2 ms ] threadInstead of this: 47: FieldInfo[] EventFields = typeof(DataReceivedEventArgs)
It should be this: 47: FieldInfo[] EventFields = typeof(T)