Author: technobits


How to simplify coding DependencyProperty in WPF and Silverlight

Introduction This tip will introduce an excellent method to simplify Coding DependencyProperty in WPF and Silverlight.  Background Writing Dependency Property is really an annoying task and so easy to make mistakes. I’ve found an excellent solution to solve this problem.  Using the code 1. Install AutoCode 4.0 ( 2. Generate the three files at the […]


C++ String Toolkit (StrTk) Tokenizer

Introduction This article will present the tokenizing and splitting functionality of a simple C++ library called the String Toolkit. Tokenization in the context of string processing, is the method by which a sequence of elements are broken up or fragmented in sub-sequences called tokens. The indices in the original sequence that determine such breaks in […]


RSA Private Key Encryption

RSA Introduction The RSA (Rivest, Shamir, Adleman) encryption algorithm uses two Keys: Private and Public. Scenario A Suppose Alice wants to send a message to Bob (for his eyes only!). She can encrypt the message using the RSA algorithm with Bob’s Public Key, which is not a secret (that’s why they call it Public…). Once […]


The Underlying Connection Was Closed: The Connection Closed Unexpectedly in EF 4.0

Introduction When we try to return back collection entity from WCF method, then the common cause comes “The-underlying-connection-was-closed–The-connection-closed-unexpectedly” Using the Code Entity Framework 4 enables lazy loading of entities by default. I’m not going to argue about whether that is good or bad, but there is something you should be aware of. If you’re like […]

TechnoBits. All rights reserved
Back To Top