Example #1
0
        private static FilterParams FromNativeObject(AGDnsApi.ag_filter_params filterParamsC)
        {
            FilterParams filterParams = new FilterParams();

            MarshalUtils.AllPtrsToStrings(filterParamsC, filterParams);
            MarshalUtils.CopyFieldsToProperties(filterParamsC, filterParams);
            return(filterParams);
        }
Example #2
0
 private static AGDnsApi.ag_filter_params ToNativeObject(
     FilterParams filterParams,
     Queue <IntPtr> allocatedPointers)
 {
     AGDnsApi.ag_filter_params filterParamsC = new AGDnsApi.ag_filter_params();
     MarshalUtils.CopyPropertiesToFields(filterParams, ref filterParamsC);
     MarshalUtils.AllStringsToPtrs(filterParams, ref filterParamsC, allocatedPointers);
     return(filterParamsC);
 }