Cleared some CA items.

This commit is contained in:
soukoku
2014-04-20 20:45:08 -04:00
parent 4b08d3bc29
commit a766370930
31 changed files with 293 additions and 100 deletions

View File

@@ -19,6 +19,7 @@ namespace NTwain
// in essence it only exists in 64 bit systems and thus
// the 2 sets of identical pinvokes for windows :(
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline")]
static Platform()
{
IsApp64bit = IntPtr.Size == 8;
@@ -29,6 +30,8 @@ namespace NTwain
IsOnMono = Type.GetType("Mono.Runtime") != null;
IsWin = Environment.OSVersion.Platform == PlatformID.Win32NT;
IsLinux = Environment.OSVersion.Platform == PlatformID.Unix;
_defaultMemManager = new WinMemoryManager();
}
internal static readonly bool UseNewDSM;
@@ -61,8 +64,8 @@ namespace NTwain
}
static readonly WinMemoryManager _defaultMemManager = new WinMemoryManager();
static IMemoryManager _specifiedMemManager = null;
static readonly WinMemoryManager _defaultMemManager;
static IMemoryManager _specifiedMemManager;
/// <summary>
/// Gets the <see cref="IMemoryManager"/> for communicating with data sources.