Added a new class, EnumHelper, which provides an implementation of Enum.GetValues() for the Xbox 360 and the GetHighestValue() and GetLowestValue() methods which can be useful if you want to create a flags array (eg. using the BitArray class) for an enumeration not declared with the [Flags] attribute or a flags enumeration not fitting within an integer or long; wrote unit tests for the new EnumHelper class, test coverage remains at 100.0%
git-svn-id: file:///srv/devel/repo-conversion/nusu@186 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
52b83e8847
commit
11610cbbbe
4 changed files with 283 additions and 0 deletions
|
@ -120,6 +120,10 @@
|
|||
<DependentUpon>ReverseComparer.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\AffineThreadPool.cs" />
|
||||
<Compile Include="Source\EnumHelper.cs" />
|
||||
<Compile Include="Source\EnumHelper.Test.cs">
|
||||
<DependentUpon>EnumHelper.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\Plugins\PrototypeFactory.cs" />
|
||||
<Compile Include="Source\Plugins\PrototypeFactory.Test.cs">
|
||||
<DependentUpon>PrototypeFactory.cs</DependentUpon>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue