How can I pass parameters to a command in C#?
Learn how to pass data to a command without violating the command pattern in C#.
There are almost as many ways to implement the command pattern as there are types of data to pass to it, and not all of them are correct. Follow along in Visual Studio as Jeremy McPeak shows you how to enable an object to issue a request to another object while remaining blind to the details of both the request and target object. Jeremy then demonstrates how to pass required data to the command’s constructor. Users with a knowledge of C# fundamentals and basic patterns will gain the tools needed to pass data to a command without violating the command pattern.