Instantiating Classes with Internal Constructors (C#) (rvenables.com) 7 points by masonry 17y ago ↗ HN
[–] syntatic 17y 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 17y ago ↗ Fixed (with one other bug)
[–] pmichaud 17y ago ↗ Neat fix, but wow, what acrobatics to do something that should be simple. Tsk, tsk C#.
3 comments
[ 2.7 ms ] story [ 26.8 ms ] threadInstead of this: 47: FieldInfo[] EventFields = typeof(DataReceivedEventArgs)
It should be this: 47: FieldInfo[] EventFields = typeof(T)