From 649b2130f351e15e95ff40e8f3ee52146dcfa8b2 Mon Sep 17 00:00:00 2001 From: NadaAlOtaibi <82446110+NadaAlOtaibi@users.noreply.github.com> Date: Wed, 21 Apr 2021 14:15:29 +0300 Subject: [PATCH 1/4] Create check-char.cs --- check-char/check-char.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 check-char/check-char.cs diff --git a/check-char/check-char.cs b/check-char/check-char.cs new file mode 100644 index 0000000..7d47b4a --- /dev/null +++ b/check-char/check-char.cs @@ -0,0 +1,23 @@ + using System; + + +namespace apr21ex2 +{ + class check + { + + static void Main(string[] args) { + + Console.WriteLine("Enter String"); + string Stirng = Console.ReadLine(); + + Console.Write("The string without E is: "); + foreach (var item in Stirng) + { + if (item == 'e' || item == 'E') + { + continue; + } + Console.Write(item); + + } From bf6c5daf2e61f4d62b1b38274a050b86737a572e Mon Sep 17 00:00:00 2001 From: NadaAlOtaibi <82446110+NadaAlOtaibi@users.noreply.github.com> Date: Wed, 21 Apr 2021 14:17:55 +0300 Subject: [PATCH 2/4] Create start-with.cs --- start-with/start-with.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 start-with/start-with.cs diff --git a/start-with/start-with.cs b/start-with/start-with.cs new file mode 100644 index 0000000..c4eb5b4 --- /dev/null +++ b/start-with/start-with.cs @@ -0,0 +1,28 @@ +using System; + +namespace class21apr +{ + class Program + { + + static void method (string file) + { + + //trim() to delete white space + + if (file.Trim().StartsWith(".")){ + Console.WriteLine("This is heddin folder"); } + else { + Console.WriteLine("The folder name is " + file); + + } + + } + + static void Main(string[] args) + { + + method(".git"); + } + } +} From e2a13e64e311aab502274f074fcb67367d88dc04 Mon Sep 17 00:00:00 2001 From: Nada Al-Otaibi <82446110+NadaAlOtaibi@users.noreply.github.com> Date: Sat, 1 May 2021 14:10:01 +0300 Subject: [PATCH 3/4] Delete check-char directory --- check-char/check-char.cs | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 check-char/check-char.cs diff --git a/check-char/check-char.cs b/check-char/check-char.cs deleted file mode 100644 index 7d47b4a..0000000 --- a/check-char/check-char.cs +++ /dev/null @@ -1,23 +0,0 @@ - using System; - - -namespace apr21ex2 -{ - class check - { - - static void Main(string[] args) { - - Console.WriteLine("Enter String"); - string Stirng = Console.ReadLine(); - - Console.Write("The string without E is: "); - foreach (var item in Stirng) - { - if (item == 'e' || item == 'E') - { - continue; - } - Console.Write(item); - - } From 6d85738b923a51516b840cdcea01d83550c3b22b Mon Sep 17 00:00:00 2001 From: Nada Al-Otaibi <82446110+NadaAlOtaibi@users.noreply.github.com> Date: Sat, 1 May 2021 14:10:12 +0300 Subject: [PATCH 4/4] Delete start-with directory --- start-with/start-with.cs | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 start-with/start-with.cs diff --git a/start-with/start-with.cs b/start-with/start-with.cs deleted file mode 100644 index c4eb5b4..0000000 --- a/start-with/start-with.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; - -namespace class21apr -{ - class Program - { - - static void method (string file) - { - - //trim() to delete white space - - if (file.Trim().StartsWith(".")){ - Console.WriteLine("This is heddin folder"); } - else { - Console.WriteLine("The folder name is " + file); - - } - - } - - static void Main(string[] args) - { - - method(".git"); - } - } -}