Posts Tagged ‘C#’

Launching WCF Test client From Service Application.

October 9, 2015 Leave a comment

When we create a WCF Service Application , and when we try to debug service application you will find that sometimes it launches browser instead of WCF test client.

its very easy to fix this problem.

open you solution and right click on the SVC file and set it as a start page.



then run the project you will be happy to see your test client.



Happy weekend.. Smile


Storing Multiple Values in Dictionary C#

October 9, 2015 Leave a comment

We All know the famous Dictionary

Dictionary<string,string> myDictionary

Its normally used for storing Key, Value pair.

Sometimes we want to store something like Key,Value,value.

for eg.

Dictionary<string,string,string> myDictionary

Unfortunately we don’t such structure in .Net, but there is workaround for such situation.

Create a Class or Struct and use it as Value.

for eg.

public class MyClass
public string Value1 { get; set; }
public string Value2 { get; set; }

Dictionary<string, MyClass> myDictionary


Hope this helps.

Categories: C#, Tips Tags: , ,