Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 89
» Latest member: LadySOULdja
» Forum threads: 48
» Forum posts: 109

Full Statistics

Online Users
There are currently 2 online users.
» 0 Member(s) | 2 Guest(s)

Latest Threads
Checking If Var is in Ran...
Forum: Everything Else Discussion
Last Post: GrandPuba32@
03-02-2025, 10:54 PM
» Replies: 0
» Views: 457
Week 2 HW 2
Forum: Everything Else Discussion
Last Post: almostengr
02-21-2025, 04:07 AM
» Replies: 1
» Views: 847

 
  Checking If Var is in Range/List
Posted by: GrandPuba32@ - 03-02-2025, 10:54 PM - Forum: Everything Else Discussion - No Replies

When you were going through the IfElse statements for this week using letters, I was trying to look up if there was a way to see if a letter was in 'a':'z' without having to type everything individually in the IfElse? Is there a way to do that? I found this bit of code online, but I couldn't understand what it was doing..

Code:
var list = Enumerable.Range('a', 'z' - 'a' + 1).Select(c => (char)c).ToList();

Print this item

  Week 2 HW 2
Posted by: GrandPuba32@ - 02-15-2025, 09:14 PM - Forum: Everything Else Discussion - Replies (1)

Does anyone know what the benefits to using Convert.ToInt32() vs int.Parse() are?

Print this item