advance csharp tricks and hits

Code Example - advance csharp tricks and hits

                
                        decimal total = (from account in myAccounts
                       where account.Status == "active"
                       select account.Balance).Sum();