What is the simplest way of testing if an object implements a given interface in C#? (Answer to this question in Java)
if (object is IBlah)
or
IBlah myTest = originalObject as IBlah if (myTest != null)
1.4m articles
1.4m replys
5 comments
56.9k users