From 33415d28b8a844aab41bbdcaede8ac42173a28a0 Mon Sep 17 00:00:00 2001 From: David Allemang Date: Wed, 1 Mar 2017 18:19:23 -0500 Subject: [PATCH] Removed int conversion operator --- Diamond/Wrappers/Wrapper.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Diamond/Wrappers/Wrapper.cs b/Diamond/Wrappers/Wrapper.cs index 101bdee..8f34e96 100644 --- a/Diamond/Wrappers/Wrapper.cs +++ b/Diamond/Wrappers/Wrapper.cs @@ -15,9 +15,7 @@ namespace Diamond.Wrappers /// The OpenGL name of this object /// public int Id { get; private set; } - - public static explicit operator int(Wrapper o) => o.Id; - + // Force wrapper types to generate an Id at creation time protected Wrapper(int id) {