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 Tips and Techniques
  • About Dave
  • My Blogs
  • Contact Me Anytime!

string

2

C#: Fastest way to TRIM strings

Posted on January 9, 2016 by David Lozinski
C#

C#: Fastest Way to TRIM strings This will benchmark various techniques to determine in C# .Net: Fastest way to TRIM strings. Removing all the whitespace at the beginning and/or end of a string. Every programmer at some point needs to… Continue Reading →

C# .Net, C#, IsWhiteSpace, Remove, string, substring, trim, TrimEnd, TrimStart
7

Fastest Way to Compare Strings in C# .Net

Posted on December 8, 2014 by David Lozinski
C#

Fastest Way to Compare Strings in C# .Net What is the fastest way to compare strings in C# .Net? Everyone’s had to do it. A lot of people instinctively use the C# “==” operator. In several programming forums I’ve posted… Continue Reading →

C# .Net, C#, string, String.Compare, String.CompareOrdinal, String.Equals, String.IndexOf, String.ToLower, String.ToUpper
9

Fastest Collection for String Lookups in C# .Net

Posted on November 2, 2014 by David Lozinski
C#

Fastest Collection for String Lookups in C# .Net All C# programmers have had to do this at some point in their career… look for a particular string as some sort of key or value within a data structure. But how… Continue Reading →

C# .Net, ArrayList, Binary Search, C#, collection, ConcurrentDictionary, Dictionary, HashTable, List, SortedDictionary, SortedList, string
0

Faster to Trim during or after assignment in C# .Net

Posted on September 23, 2014 by David Lozinski
C#

Faster to Trim during or after assignment in C# .Net Does it make a difference if you Trim() during or after assigning a value to a variable in C# .Net? Which was is faster? Which object, String or StringBuilder, is… Continue Reading →

C# .Net, C#, string, StringBuilder, trim
6

C#.Net: The Fastest Way to count substring occurrences in a string

Posted on August 16, 2014 by David Lozinski
C#

C#.Net: The Fastest Way to count substring occurrences in a string This will examine many techniques to determine in C# .Net: the Fastest Way to count substring occurrences in a string.   Background: This test stemmed from a project where… Continue Reading →

C# .Net, AsParallel, C#, count, Parallel.For, Regex, string, String.Split, substring
23

C# .Net: Fastest Way to check if a string occurs within a string

Posted on August 17, 2013 by David Lozinski
C#

Using C# .Net: Fastest Way to check if a string occurs within a string. This will examine many techniques to determine in C# .Net: Fastest Way to check if a string occurs within a string.   The Background: How many… Continue Reading →

C# .Net, C#, Parallel.For, Regex.IsMatch, string, String.Contains, String.IndexOf, String.Split

Subscribe to be notified of new posts:

Loading

Most Popular Last 30 Days

  • SQL: Fastest way to insert new records where one… (1,095)
  • C# .Net: Fastest Way to Read Text Files (807)
  • SQL: Fastest way to compare multiple column values (393)
  • Fastest Collection for String Lookups in C# .Net (341)
  • C# .Net: Fastest Way to check if a string occurs… (314)

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

Recent Posts

  • How to show attachments on NWC/NAC Cloud Task Forms
  • Does How You Access Class Properties Make A Difference?
  • Things I do to increase Windows drive performance
  • Massive SQL Date Time Cheat Sheet
  • Division Vs Multiplication Equivalent

Everything Else!

Here's Everything if you're trying to find a post, missed some, or just want to see, well, everything. :-)
© 2023 The Curious Consultant. All rights reserved.
Hiero by aThemes