There’re no associative arrays (hash) in common sense. There are Dictionaries for this. It’s a very good tool if you want to use link "key-value". Using Dictionaries, keys and values can be different types. (read more...)
There’re no associative arrays (hash) in common sense. There are Dictionaries for this. It’s a very good tool if you want to use link "key-value". Using Dictionaries, keys and values can be different types. (read more...)
When I tried to add html to data for my GridView control, I could only see html code. I could see "<span class="myhtmlclass">my text</span> from SQL request</span>. But I wanted to wrap my content with <span> tags. (read more...)
In this post I write some examples of C# coding for SharePoint list items. These methods are rather fast and it's very actual for SharePoint. (read more...)
In this post I'll describe two ways to sort List<T> generic collection by one of it's fields. It's very useful and not easy for beginners. (read more...)
So we need to save our List<T> to XML file for something. For example, for work with it in Access. C# is great for this with using System.Xml.Serialization. There are only 4 strings of code to save an XML-file. (read more...)