public void ModelObject_GetIntegerReportProperties() { var methodInfo = typeof(Tekla.Structures.Model.ModelObject).GetMethods() .Where(m => m.Name.Equals("GetIntegerReportProperties", StringComparison.InvariantCulture) && m.GetParameters().Length > 1) .FirstOrDefault(); var methodCode = SingleMethodGenerator.GenerateCode(methodInfo); Console.WriteLine(methodCode); }
public void Operation_Combine() { var methodInfo = typeof(Tekla.Structures.Model.Operations.Operation).GetMethods() .Where(m => m.Name.Equals("Combine", StringComparison.InvariantCulture) && m.GetParameters().Length > 1) .FirstOrDefault(); var methodCode = SingleMethodGenerator.GenerateCode(methodInfo); Console.WriteLine(methodCode); }
public void Solid_Intersect() { var methodInfo = typeof(Tekla.Structures.Model.Solid).GetMethods() .Where(m => m.Name.Equals("Intersect", StringComparison.InvariantCulture) && m.GetParameters().Length > 2) .FirstOrDefault(); var methodCode = SingleMethodGenerator.GenerateCode(methodInfo); Console.WriteLine(methodCode); }