public static ISymUnmanagedConstant[] GetConstants(this ISymUnmanagedScope2 scope)
        {
            if (scope == null)
            {
                throw new ArgumentNullException(nameof(scope));
            }

            return(NullToEmpty(GetItems(scope,
                                        (ISymUnmanagedScope2 a, int b, out int c, ISymUnmanagedConstant[] d) => a.GetConstants(b, out c, d))));
        }
        private static ISymUnmanagedConstant[] GetConstants(this ISymUnmanagedScope2 scope)
        {
            int length;

            scope.GetConstants(0, out length, null);
            if (length == 0)
            {
                return(null);
            }

            var constants = new ISymUnmanagedConstant[length];

            scope.GetConstants(length, out length, constants);
            return(constants);
        }
Exemple #3
0
 private static ISymUnmanagedConstant[] GetConstantsInternal(ISymUnmanagedScope2 scope)
 {
     return(GetItems(scope,
                     (ISymUnmanagedScope2 a, int b, out int c, ISymUnmanagedConstant[] d) => a.GetConstants(b, out c, d)));
 }