コード例 #1
0
 public PropVariant(ConstPropVariant value)
 {
     if (value != null)
     {
         PropVariantCopy(this, value);
     }
     else
     {
         throw new NullReferenceException("null passed to PropVariant constructor");
     }
 }
コード例 #2
0
 protected static extern void PropVariantCopy(
     [Out, MarshalAs(UnmanagedType.LPStruct)] PropVariant pvarDest,
     [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvarSource);