using System; using System.Collections.Generic; using System.Linq; using System.Text; [assembly: Microsoft.Scripting.Runtime.ExtensionType( typeof(Org.TechA.Wpf.Dlr.Console.Controls.TestFluent), typeof(Org.TechA.Wpf.Dlr.Console.Controls.TestFluentExt))] [assembly: Microsoft.Scripting.Runtime.ExtensionType( typeof(Org.TechA.Wpf.Dlr.Console.Controls.Document[]), typeof(Org.TechA.Wpf.Dlr.Console.Controls.TestFluentExt))] namespace Org.TechA.Wpf.Dlr.Console.Controls { public class TestFluent { } public static class TestFluentExt { public static Document[] Documents(this TestFluent fluent) { return new Document[] { new Document(), new Document() }; } public static Document[] With(this Document[] documents) { return documents; } public static Page[] PdfPages(this Document[] documents) { return new Page[] { new Page(), new Page(), new Page() }; } public static string Foo(this TestFluent fluent) { return "Foo"; } } class d { private void dd() { } } public class Page { } public class Document { } public class WithparamsClass { public int Testparams(params int[] values) { return values[0]; } public string Testparams(params string[] values) { return values[0]; } } }