public static Context Create(Platform platform, DeviceType deviceType) { if (platform == null) { throw new ArgumentNullException("platform"); } ContextSafeHandle handle = UnsafeNativeMethods.CreateContextFromType(platform.ID, deviceType, null, IntPtr.Zero); return(new Context(handle)); }