This is a quick guide to internal implementation of such C# types as Dictionary, Hashtable, List and others.
Tag: c#
Equals & GetHashCode: Why is it important to override both?Equals & GetHashCode: Why is it important to override both?
It is important if your item will be used as a key in a dictionary, or HashSet, etc – since this is used to group items into buckets (in the
Executing SQL script with GO statement from C# codeExecuting SQL script with GO statement from C# code
In the middle of a project you might want to automate DB restoring and upgrading by means of existing SQL scripts which may contain GO-statements. If you are that person who is attempting to execute scripts
Calculation of PowerSet on C#Calculation of PowerSet on C#
This text explains a binary algorithm to calculate a power set of any sequence. It has a sample code in C#.
Error: DbArithmeticExpression arguments must have a numeric common type.Error: DbArithmeticExpression arguments must have a numeric common type.
From time to time you need to filter data by difference between two dates. For instance, you wanna take a difference between date from a record and Today.
Error: Unable to determine the principal end of an association between the typesError: Unable to determine the principal end of an association between the types
You may get this error if you have entities related to itself. For example, you have a tree hierarchy.
Post JSON objects with nested classes to MVC actionPost JSON objects with nested classes to MVC action
Default view model binding of ASP.NET MVC has a disadvantage when using view models with nested classes and JSON objects. The binding is unable to recognize such nested classes and it initializes
Speeding up calculation of an average in continuous processesSpeeding up calculation of an average in continuous processes
Processing big sets of data can cause a low performance due to inefficient calculations. In order to overcome this issue we should rewrite calculations in a way which allows getting

String Expression CalculatorString Expression Calculator
Parsing of math equations from text expressions is the interesting thing. This task is close to LL parsing but can be solved in different ways. This approach tends to be the simplest
Disabled control in a DataGridView cellDisabled control in a DataGridView cell
From time to time you need to show a disabled control within DataGridView control. As you might already know, a grid cell has ReadOnly property which is not useful for