Some attempts at making this compile on WinRT. Much work remains.
git-svn-id: file:///srv/devel/repo-conversion/nusu@281 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
cc1b8d095a
commit
7d4a66e9f2
8 changed files with 163 additions and 34 deletions
|
|
@ -21,6 +21,7 @@ License along with this library
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Nuclex.Support.Collections {
|
||||
|
||||
|
|
@ -308,7 +309,11 @@ namespace Nuclex.Support.Collections {
|
|||
/// <param name="value">Value that will be checked for compatibility</param>
|
||||
/// <returns>True if the value can be placed in the deque</returns>
|
||||
private static bool isCompatibleObject(object value) {
|
||||
#if WINRT
|
||||
return ((value is TItem) || ((value == null) && !typeof(TItem).GetTypeInfo().IsValueType));
|
||||
#else
|
||||
return ((value is TItem) || ((value == null) && !typeof(TItem).IsValueType));
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the provided object matches the deque's type</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue