1

I want to check if a specific item in PartnerData is null or not.

Dynamic Object - Dynamic objects expose members such as properties and methods at run time, instead of in at compile time.

Below is my snippet

item.PartnerData.itemVoid

I want to check if PartnerData has itemVoid. When I do like item.PartnerData.itemVoid.Equals(null) it throws an error, maybe because this is not the right thing to check if itemVoid is null or what. Base from what I know PartnerData will be resolved at runtime.

Can I check if a PartnerData has this specific items like itemVoid etc.? Or there is a safe way to access the itemVoid without throwing an error like System.Dynamic.DynamicObject' does not contain a definition for itemVoid

0 Answers0