public static int GetSlot(this ISymUnmanagedVariable local) { if (local == null) { throw new ArgumentNullException(nameof(local)); } int result; ThrowExceptionForHR(local.GetAddressField1(out result)); return result; }