当前位置:网站首页>[xlua notes] array of lua to array of C #
[xlua notes] array of lua to array of C #
2022-07-07 02:20:00 【Start()】
To C# Of string Group :
-- Pass in a Lua String group of
-- Return to one C# String group of
function GetStringList(var)
local count = #var
local lis = CS.System.Array.CreateInstance(typeof(CS.System.String),count)
for i=0,count-1 do
lis[i] = var[i+1]
end
return lis
end
To C# Of int Group :
-- Pass in a Lua Of int Group
-- Return to one C# Of int Group
function GetIntList(var)
local count = #var
local lis = CS.System.Array.CreateInstance(typeof(CS.System.Int32),count)
for i=0,count-1 do
lis[i] = var[i+1]
end
return lis
end
To C# Of float Group :
-- Pass in a Lua Of float Group
-- Return to one C# Of float Group
function GetFloatList(var)
local count = #var
local lis = CS.System.Array.CreateInstance(typeof(CS.System.Single),count)
for i=0,count-1 do
lis[i] = var[i+1]
end
return lis
end
Lua Group representation :
Group name = { Elements 1, Elements 2, Elements 3}
边栏推荐
- A new path for enterprise mid Platform Construction -- low code platform
- Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
- 新一代云原生消息队列(一)
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- 猫猫回收站
- Lidar: introduction and usage of ouster OS
- Lombok同时使⽤@Data和@Builder 的坑
- How did partydao turn a tweet into a $200million product Dao in one year
- 红外相机:巨哥红外MAG32产品介绍
- Halcon knowledge: segment_ contours_ XLD operator
猜你喜欢
![[paper reading | deep reading] graphsage:inductive representation learning on large graphs](/img/fe/3d4ccfa79a9624ac4901feeea1e69f.png)
[paper reading | deep reading] graphsage:inductive representation learning on large graphs

Big guys gather | nextarch foundation cloud development meetup is coming!

Time synchronization of livox lidar hardware -- PPS method

Centros 8 installation MySQL Error: The gpg Keys listed for the "MySQL 8.0 Community Server" repository are already ins

Processing image files uploaded by streamlit Library

Lumion 11.0 software installation package download and installation tutorial

centos8 用yum 安装MySQL 8.0.x

Introduction to microservice architecture

大咖云集|NextArch基金会云开发Meetup来啦!

【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
随机推荐
Infrared camera: juge infrared mag32 product introduction
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
Analyze "C language" [advanced] paid knowledge [II]
#夏日挑战赛#数据库学霸笔记(下)~
传感器:DS1302时钟芯片及驱动代码
Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
ROS learning (23) action communication mechanism
Threadlocalutils (tool class IV)
Flir Blackfly S 工业相机:自动曝光配置及代码
Data connection mode in low code platform (Part 1)
FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
BigDecimal 的正确使用方式
Recent applet development records
ROS learning (24) plugin
ROS learning (XX) robot slam function package -- installation and testing of rgbdslam
ROS learning (26) dynamic parameter configuration
Dall-E Mini的Mega版本模型发布,已开放下载
Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code
传感器:土壤湿度传感器(XH-M214)介绍及stm32驱动代码
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野