Example #1
0
 internal ValueMetaData(DeviceDetectionHashEngine engine, ValueMetaDataSwig source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     _source = source;
     _engine = engine;
 }
        public ValueMetaDataSwig getByIndex(uint index)
        {
            global::System.IntPtr cPtr = DeviceDetectionHashEngineModulePINVOKE.ValueMetaDataCollectionSwig_getByIndex(swigCPtr, index);
            ValueMetaDataSwig     ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ValueMetaDataSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public PropertyMetaDataSwig getPropertyForValue(ValueMetaDataSwig value)
        {
            global::System.IntPtr cPtr = DeviceDetectionHashEngineModulePINVOKE.MetaDataSwig_getPropertyForValue(swigCPtr, ValueMetaDataSwig.getCPtr(value));
            PropertyMetaDataSwig  ret  = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyMetaDataSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public ValueMetaDataSwig getDefaultValueForProperty(PropertyMetaDataSwig property)
        {
            global::System.IntPtr cPtr = DeviceDetectionHashEngineModulePINVOKE.MetaDataSwig_getDefaultValueForProperty(swigCPtr, PropertyMetaDataSwig.getCPtr(property));
            ValueMetaDataSwig     ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ValueMetaDataSwig(cPtr, true);

            if (DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Pending)
            {
                throw DeviceDetectionHashEngineModulePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ValueMetaDataSwig obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #6
0
 public PropertyMetaDataSwig getPropertyForValue(ValueMetaDataSwig value)
 {
     return(_object.getPropertyForValue(value));
 }