Beispiel #1
0
        internal static DragAccept ToManaged(DragAccept_StructInternal _internal_struct)
        {
            var _external_struct = new DragAccept();

            _external_struct.Accepted = _internal_struct.Accepted != 0;

            return(_external_struct);
        }
Beispiel #2
0
        internal static DragAccept_StructInternal ToInternal(DragAccept _external_struct)
        {
            var _internal_struct = new DragAccept_StructInternal();

            _internal_struct.Accepted = _external_struct.Accepted ? (byte)1 : (byte)0;

            return(_internal_struct);
        }