internal EnumFORMATETC(BclComTypes.IEnumFORMATETC bclEnum) { if (null == bclEnum) { throw new ArgumentNullException("System.Runtime.InteropServices.ComTypes.IEnumFORMATETC"); } this.oleEnum = bclEnum as OleInterop.IEnumFORMATETC; this.bclEnum = bclEnum; }
internal EnumFORMATETC(OleInterop.IEnumFORMATETC oleEnum) { if (null == oleEnum) { throw new ArgumentNullException("Microsoft.VisualStudio.OLE.Interop.IEnumFORMATETC"); } this.oleEnum = oleEnum; this.bclEnum = oleEnum as BclComTypes.IEnumFORMATETC; }
////////////////////////////////////////////////////////////// // Clone void OleInterop.IEnumFORMATETC.Clone(out OleInterop.IEnumFORMATETC ppEnum) { ppEnum = null; if (null != oleEnum) { oleEnum.Clone(out ppEnum); } else { BclComTypes.IEnumFORMATETC bclCloned; bclEnum.Clone(out bclCloned); ppEnum = bclCloned as OleInterop.IEnumFORMATETC; if (null == ppEnum) { ppEnum = (OleInterop.IEnumFORMATETC)(new EnumFORMATETC(bclCloned)); } } }
int OleInterop.IDataObject.EnumFormatEtc(uint dwDirection, out OleInterop.IEnumFORMATETC ppenumFormatEtc) { if (null != oleData) { return(oleData.EnumFormatEtc(dwDirection, out ppenumFormatEtc)); } BclComTypes.IEnumFORMATETC bclEnum = bclData.EnumFormatEtc((BclComTypes.DATADIR)dwDirection); if (null == bclEnum) { ppenumFormatEtc = null; } else { ppenumFormatEtc = bclEnum as OleInterop.IEnumFORMATETC; if (null == ppenumFormatEtc) { ppenumFormatEtc = (OleInterop.IEnumFORMATETC)(new EnumFORMATETC(bclEnum)); } } return(NativeMethods.S_OK); }
internal EnumFORMATETC(BclComTypes.IEnumFORMATETC bclEnum) { if (null == bclEnum) throw new ArgumentNullException("System.Runtime.InteropServices.ComTypes.IEnumFORMATETC"); this.oleEnum = bclEnum as OleInterop.IEnumFORMATETC; this.bclEnum = bclEnum; }
internal EnumFORMATETC(OleInterop.IEnumFORMATETC oleEnum) { if (null == oleEnum) throw new ArgumentNullException("Microsoft.VisualStudio.OLE.Interop.IEnumFORMATETC"); this.oleEnum = oleEnum; this.bclEnum = oleEnum as BclComTypes.IEnumFORMATETC; }