Environment=KEY=VALUE
{
"ConnectionStrings": {
"DefaultConnection": "SomeString"
}
}
Environment=ConnectionStrings__DefaultConnection='SomeString'
foreach (var punctuationMark in punctuation_marks)
{
str = str.Replace(punctuationMark, "");
}
str = string.Join("", str.Split(punctuation_marks, StringSplitOptions.RemoveEmptyEntries));
StringBuilder sb = new StringBuilder();
foreach (var c in str.ToCharArray())
{
if (!char.IsPunctuation(c)) sb.Append(c);
}
StringBuilder sb = new StringBuilder();
foreach (var c in str.ToArray())
{
if (punctuation_marks.All(p=>p != c.ToString())) sb.Append(c);
}
var regexp = new Regex(@"/\.,;:]\[<>\{}\|!\?");
regexp.Replace(str, "");
var str = "hello world";
var sb = new StringBuilder();
foreach (var c in str)
{
sb.Append(Convert.ToString(c, 2));
}
str = sb.ToString();
var image = new Bitmap(str.Length, 1);
for (var index = 0; index < str.Length; index++)
{
var c = str[index];
switch (c)
{
case '1':
image.SetPixel(index,0, Color.Black);
break;
case '0':
image.SetPixel(index,0, Color.White);
break;
}
}
pictureBox1.Image = image;
private void label1_Click(object sender, EventArgs e)
{
if ((e as MouseEventArgs)?.Button == MouseButtons.Right)
{
this.contextMenuStrip1.Show(label1, 0, 0);
}
}
void InitializeSpaceObject(SpaceObject spaceObject)
{
spaceObject.Initialize();
}
void InitializeSpaceObject(ISpaceObject spaceObject)
{
spaceObject.Initialize();
}