public PropertyCollectionSwigWrapper(
     PropertyMetaDataCollectionSwig instance,
     DeviceDetectionHashEngine engine)
 {
     _object = instance;
     _engine = engine;
 }
        public PropertyMetaDataCollectionSwig getProperties()
        {
            global::System.IntPtr          cPtr = DeviceDetectionHashEngineModulePINVOKE.MetaDataSwig_getProperties(swigCPtr);
            PropertyMetaDataCollectionSwig ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyMetaDataCollectionSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        internal static IEnumerable <IFiftyOneAspectPropertyMetaData> Select(
            this PropertyMetaDataCollectionSwig source,
            Func <PropertyMetaDataSwig, IFiftyOneAspectPropertyMetaData> selector)
        {
            for (uint i = 0; i < source.getSize(); i++)
            {
#pragma warning disable CA2000 // Dispose objects before losing scope
                // The IFiftyOneAspectPropertyMetaData instance that is created
                // will handle disposal
                yield return(selector(source.getByIndex(i)));

#pragma warning restore CA2000 // Dispose objects before losing scope
            }
        }
Exemplo n.º 4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyMetaDataCollectionSwig obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }