1 / 11

C #

C #. Cody Driskill. Overview. Originally based on Java Premier language for working in windows environments. Datatypes. Strongly Typed Mixed datatype assignment Allows “null” values Unsafe keyword. Generics.

leland
Download Presentation

C #

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C# Cody Driskill

  2. Overview • Originally based on Java • Premier language for working in windows environments

  3. Datatypes • Strongly Typed • Mixed datatype assignment • Allows “null” values • Unsafe keyword

  4. Generics • Public class GenericList<T>{void Add(T input) {}}class TestList{private class Example{}static void Main(){GenericList<int> l1 = new GenericList<int>();GenericList<string> l2 = new GenericList<string>();GenericList<Example> l3 = new GenericList<Example>();}

  5. Scoping • Lexical scoping

  6. Control Structures • for(int x = 5; x < 8; x +2) • foreach(int x in array) • while(Console.ReadLine()) • do{ something} while (Console.ReadLine()); • if (test) { do this } else { do this } • Switch (test){ case 1: do this; case 2: do this; default: do this;}

  7. Subprograms

  8. Concurrency • Threading • Actor Threads- No paramaters-manually started or aborted • Server Threads

  9. Event Handling

  10. Exception Handling

  11. Resources • msdn.microsoft.com!!!!

More Related