المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to pass null ref type.



C# Programming
12-06-2011, 11:21 PM
Hi,

I am hosting an ActivX control in C#. The control has a method as follows...

GetMinMaxVals(bouble* pdMinX, double* pdMaxX, double* pdMinY, double* pdMaxY);

The caller may pass null (zero) for any of the parameters that are not required. I only need a value for pdMaxX.

Question is: How do I pass null for the arguments i do not require?


Thanks - John.