Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Stuff
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine(Guid.NewGuid().ToString()); string val = "AA="; ContainsQueryValue("asdf"); } private static bool ContainsQueryValue (string query) { if (string.IsNullOrEmpty(query)) { Console.WriteLine("query is empty"); return false; } string[] split = query.Split('='); Console.WriteLine(split.Length); Console.WriteLine("---------"); if (split.Length == 2) { string s1 = split[0].Trim(); string s2 = split[1].Trim(); Console.WriteLine("part1=" + s1); Console.WriteLine("part2=" + s2); if (string.IsNullOrEmpty(s2 )) Console.WriteLine("part2 is empty"); } else Console.WriteLine("Not found"); return true; } } }
run
|
edit
|
history
|
help
0
List of Lists example
My Test
sleep thread
Hello world
Delegaty
Digging Deeper
Sort A List of Ages of Students (Solution: Stack / O(N^3) Complexity)
Bubble Sort
deletevowels
aaaaa