vegaseat 1,735 DaniWeb's Hypocrite Team Colleague

Did you know C# has its own scripting language based on Lisp, here is an example ...

;;; Scripting a 'C#'' GUI with Lsharp, free from www.lsharp.org

(reference "System.Windows.Forms")
(reference "System.Drawing")
(using "System.Drawing")
(using "System.Windows.Forms")
 
;; Create a form
(= form (new System.Windows.Forms.Form))
(set_text form "Hello from Lsharp")
 
;; Create a label
(= label1 (new System.Windows.Forms.Label))
(set_Text label1 "Hello World!")
(set_Size label1 (new System.Drawing.Size 224 23))
(set_Location label1 (new System.Drawing.Point 24 16))

(add (Controls form) label1)
(showdialog form)

With some imagination you can see the C# code in there. Save the file as 'Hello.lsp' and run/interpret it with 'Lsharp.exe Hello.lsp'

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.