The Curious Consultant
Menu Close
  • Home
  • Here’s everything!
    • C#
    • SQL
    • General
    • Code
      • C# Code
      • JavaScript/TypeScript Code
      • SQL Code
    • Tips and Techniques
      • C# Tips and Techniques
      • Nintex Form Tips and Techniques
  • About Dave
  • My Blogs
  • Contact Me Anytime!

conditional statement

5

C# .Net: What is the fastest conditional statement?

Posted on February 6, 2014 by David Lozinski
C#

C# .Net: What is the fastest conditional statement? This will benchmark the C# if-else construct, switch statement, and C# ternary operator (?) to determine which is the fastest in C# .Net.   Most applications have at least one type of… Continue Reading →

C# .Net, C#, conditional statement, if/else, switch/case statement, ternary operator (?)

Subscribe to be notified of new posts:

Loading

Most Popular Last 30 Days

  • SQL: Fastest way to insert new records where one… (947)
  • C# .Net: Fastest Way to Read Text Files (590)
  • SQL: Fastest way to compare multiple column values (418)
  • Fastest Collection for String Lookups in C# .Net (365)
  • SQL: LIKE vs SUBSTRING vs LEFT/RIGHT vs CHARINDEX (331)

Categories

Latest Comments:

  • Utkarsh Kapadia on C#: Dictionary Vs ConcurrentDictionary
  • Mike H on C#: Dictionary Vs ConcurrentDictionary
  • Utkarsh Kapadia on C#: Dictionary Vs ConcurrentDictionary
  • danzar on Length Vs Count Vs Initialized Variable in C#
  • 5Arete23 on Fastest Collection for String Lookups in C# .Net