public ValueCollectionSwigWrapper( ValueMetaDataCollectionSwig instance, DeviceDetectionHashEngine engine) { _object = instance; _engine = engine; }
public ValueMetaDataCollectionSwig getValues() { global::System.IntPtr cPtr = DeviceDetectionHashEngineModulePINVOKE.MetaDataSwig_getValues(swigCPtr); ValueMetaDataCollectionSwig ret = (cPtr == global::System.IntPtr.Zero) ? null : new ValueMetaDataCollectionSwig(cPtr, true); if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending) { throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static IEnumerable <IValueMetaData> Select( this ValueMetaDataCollectionSwig source, Func <ValueMetaDataSwig, IValueMetaData> selector) { for (uint i = 0; i < source.getSize(); i++) { #pragma warning disable CA2000 // Dispose objects before losing scope // The IValueMetaData instance that is created // will handle disposal yield return(selector(source.getByIndex(i))); #pragma warning restore CA2000 // Dispose objects before losing scope } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ValueMetaDataCollectionSwig obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }