Example #1
0
        public static Array1D ConvertCollectionToArray1D <E, I>(Collection <E> collection) where I : IHasExternalVersionIn <E>, new()
        {
            Array1D toReturn;

            VisionDllCommon.Priv_InitArray1D(out toReturn);
            IntPtr ptr = ConvertCollectionToIntPtr <E, I>(collection);

            toReturn.Count = (uint)collection.Count;
            toReturn.Ptr   = ptr;
            return(toReturn);
        }
Example #2
0
        public static Array1D ConvertCollectionToArray1D <T>(Collection <T> collection) where T : new()
        {
            Array1D toReturn;

            VisionDllCommon.Priv_InitArray1D(out toReturn);
            IntPtr ptr = ConvertCollectionToIntPtr <T>(collection);

            toReturn.Count = (uint)collection.Count;
            toReturn.Ptr   = ptr;
            return(toReturn);
        }