Command Design Pattern

Command design pattern revolves around a single object which encapsulate all the information to execute a method at later time. This command object contains a receiver object instance and a method pointer. A client can use command object with different parameters. Command object uses client parameters and execute the method on the receiver object. Command design pattern is …

Command Design Pattern Read More
C#

C# Convert string to int

In C#, there are there ways for converting string to int. Each way has its own advantages and disadvantages. These ways are: int.Parse method int.Parse method converts string input into integer. It takes the string input and returns int as output. Before using the int.parse, we must sure the string has a valid …

C# Convert string to int Read More

WPF Interview Questions for Beginners & Advanced – Part 4

61. How can you obtain the SynchronizationContext class? You can use the static property SynchronizationContext.Current property from the UI thread. 62. How many methods are available in SynchronizationContext class? There are two methods: 63. What is the difference between Send and Post methods in SynchronizationContext class? Post method is asynchronous method …

WPF Interview Questions for Beginners & Advanced – Part 4 Read More