Snippets of the day – Monday, March 10, 2014

Posted on Posted in Snippets

binary-code

Here are some of the most recently published snippets!

WPF TextBox style and control template sample

WPF TextBox style and control template sample:
TextBox.xaml

Open the snippet

Author:    ravi.anand007

LINQ: How to retrieve an IEnumerable collection with simple query

This is a simple query in Linq to retrieve the list of Users that have some specified condition (in this case Active == true).
Please note the == operator in the where clause (and in general all C# operators apply).
Linq is excellent in writing fast and effective in-memory query on lists, dictionaries, etc.

Open the snippet

Author:    cghersi

C#: How to remove a given tag (and all its content) from an HTML page

This method removes the content of all the occurrences of the given tag in the given page

Open the snippet

Author:    cghersi

Leave a Reply

Your email address will not be published. Required fields are marked *