Tags: C#

Hashing with Cryptography and SHA in C#

Benjamin Perkins C#

Disclaimer: Security is a very important aspect, not only for a computer system, but for an entire organization and/or company. Different types of organizations store different types of data which have different types of security requirements. My suggestion is to always consult a security expert with experience in your domain prior to implementing a security […]

Read More →

Add a DataGrid to Silverlight using C#

Benjamin Perkins C#

I recently completed a project using WPF and along the way I read up some on Silverlight. I was reading that you could simply convert your MainWindow.xaml file to a MainPage.xaml. Of course this depends on the complexity of your MainWindow.xaml file. I believe it is a known fact that programs written for the installation […]

Read More →

Conditional Methods

Benjamin Perkins C#

One of, if not the most important concepts in software programming is that of Conditional Methods. Conditional methods provide a program with the ability to make decisions based on user input, user selections or data values. The code below is a simple example of a conditional method: When run, it opens a console and requests […]

Read More →

Online SQL Formatter for ORM generated SQL

Benjamin Perkins C#

With the recent introduction of so many ORM’s (Object-relational mapping) tools onto the market it is becoming less and less needful to write SQL statements. Tools like NHibernate, Entity Framework and SubSonic to name a few will take your database mappings and write an optimized query for you. However, during development, testing or production support […]

Read More →