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!

.Net

0

Does How You Access Class Properties Make A Difference?

Posted on August 6, 2022 by David Lozinski
C# Code

Does How You Access Class Properties Make A Difference? One day I found myself writing methods for Forex Trading bots where numerous methods within the bot had to access framework classes with properties that were read only.   I started… Continue Reading →

General .Net, C#, class, Methods, parameters
0

Does Parameter Order Make A Difference

Posted on June 8, 2020 by David Lozinski
C#

Does Parameter Order Make A Difference? I remember reading once that frequently accessed method variables placed first within a method’s signature are accessed faster as they are allocated for available cpu registers.   As I was refactoring C# code in… Continue Reading →

C# .Net, C#, parameters
0

C#: Ints Vs Stringified-Ints

Posted on February 12, 2019 by David Lozinski
C#

C# Using Ints Vs Stringified-Ints This article details the benchmarks and performance showdown in C# using Ints Vs Stringified-Ints.   Often enough C# programmers will find themselves using numbers in their string representation. That is, using “8” as opposed to… Continue Reading →

C# .Net, C#, Dictionary, if/else, switch/case statement
0

C# ConvertTo Vs Parse

Posted on November 6, 2018 by David Lozinski
C#

C# ConvertTo Vs Parse This article details the benchmark and performance showdown: C# ConvertTo vs Parse methods. In any programming language, data type conversions are inevitably going to happen. C# programmers have quite a few tools up their sleeves thanks… Continue Reading →

C# .Net, bool.Parse, C#, Convert.ToBoolean, Convert.ToDateTime, Convert.ToInt32, ConvertTo, DateTime.Parse, Int.Parse, Parse
7

C#: Dictionary Vs ConcurrentDictionary

Posted on February 14, 2018 by David Lozinski
C#

C#: Dictionary Vs ConcurrentDictionary In this article we are going to benchmark a C# Dictionary Vs ConcurrentDictionary while adding/updating key-value pairs. This test came about while I was upgrading multiple code blocks from using C# Dictionary objects to ConcurrentDictionary objects.… Continue Reading →

C# .Net, Add, AddOrUpdate, C#, ConcurrentDictionary, ContainsKey, Dictionary, Parallel.For
1

C# TryParse Vs Try Catch

Posted on November 4, 2017 by David Lozinski
C#

C# TryParse Vs Try Catch This article details the C# benchmark showdown between TryParse Vs Try Catch performance. C# programmers are undoubtedly familiar with the multiple ways data can be parsed to verify good data while also handling bad data.… Continue Reading →

C# .Net, bool.TryParse, Boolean.TryParse, C#, DateTime.TryParse, int.TryParse, Int32.TryParse, Try-Catch, TryParse
4

C#: Fastest Way To Check Last Character of a String

Posted on April 4, 2017 by David Lozinski
C#

C#: Fastest Way To Check Last Character of a String In this article we’ll benchmark in C#: Fastest Way To Check Last Character of a string. There are plenty of applications and systems out there which require the need to… Continue Reading →

C# .Net, C#, Enumerable.Last, Regex.IsMatch, String.EndsWith, String.LastIndexOf, String.Substring
1

C#: Read lines from a text file in batches and process in parallel

Posted on November 5, 2016 by David Lozinski
C# Code

C#: Read lines from a text file in batches and process in parallel   I have had numerous requests from readers if I could provide some sample C# code which will read lines from a text file in batches and… Continue Reading →

C# Code, Code .Net, C#, Parallel.For, read, text file
1

C#: Azure Blob Storage Manager Class

Posted on July 3, 2016 by David Lozinski
C# Code

C# Azure Blob Storage Manager Class Here is a C# Azure Blob Storage Manager Class which I hope you find useful as I’ve needed it often enough. It provides basic functionality for blob storage in the Azure cloud. Sample usage… Continue Reading →

C# Code, Code .Net, Azure, blob storage, C#, class, CloudBlobClient, CloudBlobContainer, CloudBlockBlob, CloudStorageAccount
4

C#: For Vs ForEach Vs While

Posted on May 13, 2016 by David Lozinski
C#

C#: For Vs ForEach Vs While In this article we’ll benchmark iterating over commonly used collections and data structures with the following loop constructs in C#: For Vs ForEach Vs While. A List of strings needs to be written to… Continue Reading →

C# .Net, C#, For, ForEach, Parallel.For, Parallel.ForEach, While

Post navigation

Older Articles

Subscribe to be notified of new posts:

Loading

Most Popular Last 30 Days

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

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