private static IMemoryReader CreateReader(NtProcess process) { if (process == null || process.ProcessId == NtProcess.Current.ProcessId) { return(new CurrentProcessMemoryReader()); } else { return(ProcessMemoryReader.Create(process)); } }