System.__ComObject - how to check null
COM
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, Quite new to COM, I need to reuse VB runtime into ASP.NET C# I was able to give reference to the same and now am able to create objects of type PropertyBagClass in my code behind. Question : Whenever PropertBagClass.ReadProperty() method returns a null value, it give an object of type System.__ComObject. I can see it in Quick Watch window. I need to check whether the returned object is null. How can it be done ? There is a default value in case the property does not exists in PropertyBagClass, but it does not return the default value. Please let me know some pointers about solving this issue. Thanks !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder