예제 #1
0
        public int PositionPrint(Position position)
        {
            int size = 0;
            Console.WriteLine("Type of Position: " + position.PositionType);
            Console.WriteLine("Numeric Type of Position: " + position.NumericType);
            Console.WriteLine("Length of Position: " + position.ListLength);

            foreach (var point in position.ReturnAll())
            {
                Console.WriteLine(point.ToString());
                size += Marshal.SizeOf(point);
            }

            return size;
        }