public ProfileCollectionSwigWrapper(
     ProfileMetaDataCollectionSwig instance,
     DeviceDetectionHashEngine engine)
 {
     _object = instance;
     _engine = engine;
 }
        public ProfileMetaDataCollectionSwig getProfiles()
        {
            global::System.IntPtr         cPtr = DeviceDetectionHashEngineModulePINVOKE.MetaDataSwig_getProfiles(swigCPtr);
            ProfileMetaDataCollectionSwig ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ProfileMetaDataCollectionSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        internal static IEnumerable <IProfileMetaData> Select(
            this ProfileMetaDataCollectionSwig source,
            Func <ProfileMetaDataSwig, IProfileMetaData> selector)
        {
            for (uint i = 0; i < source.getSize(); i++)
            {
#pragma warning disable CA2000 // Dispose objects before losing scope
                // The IProfileMetaData 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(ProfileMetaDataCollectionSwig obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }