Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Saturday, February 21, 2015

My C# Naming Conventions

I would like to share the naming conventions that I am using for C#. Link

I use this as a guideline to be able to make my code more readable (especially for big projects) and to be able to identify the type of variable or method in one glance.

Moq (and primitive mocking) Demo

Here is a simple demonstration of using Moq and using a primitive mocking approach.  Link


The 1st approach (using Moq), takes a bit of a learning curve, but it is worth doing it.

The 2nd approach is easier, but at the expense of creating additional dummy class/es.

Friday, February 20, 2015

JSON reading and writing in C#

Here is a very simple example of JSON operation for C#. Link

Wednesday, January 14, 2015

C# code for E-Gizmo's RFID using Observer Pattern

Here is a console application to demonstrate the E-Gizmo's RFID. The code is written in C# / .NET 4.5. This uses simple observer pattern with one subscriber. The code could still be extended to support many subscribers.

Monday, November 30, 2009

Globe Tattoo's USB HSDPA Modem:Interfacing to C#: (Continuation)

Here is the short sample C# code I did for the Globe USB HSDPA using Visual C# 2008:

Here is the output: