Languages | bison | json | Search

csharp

rosetta euler csharp 005

The code defines a class Euler within the Rosetta namespace, containing methods for calculating the product of common prime factors of numbers from 1 to 20, with several issues and room for optimization. The code can be improved by fixing the bugs in the PrimeFactors and Overlap methods, and using more efficient algorithms and data structures for prime factorization.

test edge.js

This code imports necessary modules, defines constants, and creates a.NET function using edge-js to call a function from a C# assembly. The testEdge function is then exported as a module to be used elsewhere.

list csharp namespaces

The getNamespacesBySize function parses C# code and retrieves namespaces based on their size, sorting them in descending order. It is exported as a module and takes a string of C# code as input, returning an array of namespace names.

list csharp classes

The getClassNames function asynchronously extracts class names from C# code, optionally filtered by a specified namespace, and returns a sorted array of class names.

The getClassNames function takes C# code and an optional namespace as input and returns a sorted array of class names. It uses an ANTLR parser to extract class definitions and filter them based on the provided namespace.

get csharp params

The getClassParams function retrieves method parameters from a given C# code snippet using the antlr library's select function, and returns the results as an array of arrays containing method names and parameters. The function can optionally focus on a specific class, or extract parameters from all classes in the code if no class name is provided.