Hello friends, I happened to encounter this trouble while trying to pass the reference of a Property. public class LinkedListQ : QNode { private QNode head = null; public QNode Head { get { return head; } } class Program { static void Main(string[] args) { LinkedListQ que = new LinkedListQ(); que.ReverseList(ref que.Head); //Error “A property, indexer or dynamic member access may not be passed as an out or ref… Continue reading Constraint with properties in passing as reference
Month: November 2018
Remove Duplicates in Dataset Efficiently
Hello guys, Do you remember the pain of removing duplicates in fetched dataset by looping, comparing etc. it can be handled easily by using DataView.ToTable Method. The syntax is below. DataView.ToTable(bool distinct, string[] columnNames) distinct: If it’s true, the returned DataTable contains rows that have distinct values for all its columns specified in the second… Continue reading Remove Duplicates in Dataset Efficiently
Data Grid Best Practices in WPF
Hello friends, While working on WPF, I came to know some good Data grid tips and wanted to share you the same. Issue WPF Data Grid is not reflecting the changed Item Source. Solution If using MVVM pattern, Refresh the item source by below command. CollectionViewSource.GetDefaultView(<Your Data Grid collection name>).Refresh(); Issue How to open a… Continue reading Data Grid Best Practices in WPF