c#
BomBC
兴趣使然 毅力持之
展开
-
判断名字长度 中文长度2 英文长度1 判断方法
private int GetCharLength(string value) { char[] chars = value.ToCharArray(); int byteArray = 0; for (int i = 0; i < chars.Length; i++) { int te...原创 2019-01-19 16:36:01 · 730 阅读 · 0 评论 -
C# Attribute使用技巧 遍历特性类 创建响应事件
项目名称是:学习通过Attribute标记 我们可以不写代码 自动绑定实现了IExecute接口的类using System;using System.Collections.Generic;using System.Reflection;using System.Threading;namespace 学习{ // 一个自定义特性 BugFix 被赋给类及其成员...原创 2019-04-21 23:54:23 · 688 阅读 · 0 评论 -
ILRuntime 初体验 运行Demo
使用别人的框架如果没人引路,路程简直太辛苦了我在这里记录一下Mac环境下跑ILRuntime Demo的步骤吧第一步 下载Unity用的Demo官方Github地址:https://github.com/Ourpalm/ILRuntime官方中文文档地址:https://ourpalm.github.io/ILRuntime/public/v1/guide/index.html...原创 2019-06-02 11:30:01 · 2612 阅读 · 0 评论