Questions tagged [csharpcodeprovider]

.NET class that provides access to the C# compiler for compiling code.

CSharpCodeProvider can be used by applications to compile C# source code from in-memory strings or from files on disk, producing in-memory compiled assemblies or DLL files on disk.

153 questions
-3
votes
1 answer

How to replace string with the value of variable in c#?

if(Node.NodeType.ToString().Equals("Element", StringComparison.InvariantCultureIgnoreCase)) { if(Node.Name.ToString().Equals("DeployWebsite", StringComparison.InvariantCultureIgnoreCase)) { Count++; } string myString =…
Mitali Patil
  • 67
  • 1
  • 9
-3
votes
1 answer

I can't display my array that I have populated through form1Load. Will run without errors but wont run

public partial class Form1 : Form { DateTime[] birth = new DateTime[20]; Person[] People = new Person[20]; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { …
thanatus
  • 1
  • 1
  • 2
-4
votes
1 answer

How does addition assignment operator behave

How does addition assignment operator behaves here - btn.Click += delegate(object sender, EventArgs e)
nicholas
  • 125
  • 8
1 2 3
10
11