1,反射的使用概述 1.1 什么是反射 1.2 反射可以做什么 1.3 Type 类 1.4 反射使用归类 1.4 Type 一些常用属性 2,获取 Type 2.1 获取 Type 类型 2.2 数组 Type 生成数组 Type 获取数组 Type 获取数组的元素类型、维数 矩形数组(交错数组[......] 继续阅读
1,反射的使用概述 1.1 什么是反射 1.2 反射可以做什么 1.3 Type 类 1.4 反射使用归类 1.4 Type 一些常用属性 2,获取 Type 2.1 获取 Type 类型 2.2 数组 Type 生成数组 Type 获取数组 Type 获取数组的元素类型、维数 矩形数组(交错数组[......] 继续阅读
1. Introduction 1.1 About Reflection and Attributes 2. Assembly Operations 2.1 Getting the Assembly Object 2.1.1 Runtime Getting Assemblies 2.1.2[......] 继续阅读
1. 说明 1.1 关于反射、特性 2. 程序集操作 2.1 获取 程序集对象(Assembly) 2.1.1 运行时获取程序集 2.1.2 使用方法 2.1.3 从文件加载程序集 2.1.4 使用方法 2.2 Assembly 使用 2.2.1 获取程序集完全限定名称 2.2.2 Assembl[......] 继续阅读
通过反射获取到属性名称以及特性后,要获取属性的值。 static void Main(string[] args) { Test test = new Test() { A = 13510[......]继续阅读
Through reflection, after obtaining the property names and attributes, the next step is to retrieve the values of the properties. static void[......]继续阅读
C# Core Technical Guide [......] 继续阅读
探究 C# 中的 char 、 string(一) [TOC] 1. System.Char 字符 char 是 System.Char 的别名。 System.Char 占两个字节,16个二进制位。 System.Char 用来表示、存储一个 Unicode 字符。 System.Char 的表示[......] 继续阅读
Exploring char and string in C# [TOC] 1. System.Char Character char is an alias for System.Char. System.Char occupies two bytes, which is 16 binary bi[......] 继续阅读
目录 关于数据绑定 视图-视图绑定 绑定模式 简单的集合绑定 C# Xamarin 数据绑定入门基础 关于数据绑定 Xamarin 单向、双向绑定 Xaml绑定 C#代码绑定 在此之前,几段 伪代码 帮助像我一样菜的同学入门[......] 继续阅读
C# Xamarin Data Binding Basics [TOC] About Data Binding Xamarin One-way and Two-way Binding Xaml Binding C# Code Binding Before diving deeper, here ar[......] 继续阅读
C# HttpClient Request Authentication and Data Transmission Notes [TOC] I. Authorization Authentication When a client requests a server, authorization[......] 继续阅读
目录 一,授权认证 二,请求类型 三,数据传输 C# HttpClient 请求认证、数据传输笔记 一,授权认证 客户端请求服务器时,需要通过授权认证许可,方能获取服务器资源,目前比较常见的认证方式有 Basic 、JWT、Cookie。[......] 继续阅读
Expression Tree Practical Exercises: C# Value Types, Reference Types, Generics, Collections, Function Calls [TOC] 1. Defining Variables In C# express[......] 继续阅读
表达式树练习实践:C#值类型、引用类型、泛型、集合、调用函数 [TOC] 一,定义变量 C# 表达式树中,定义一个变量,使用 ParameterExpression。 创建变量结点的方法有两种, Expression.Parameter() Expression.Variable() // 另外,[......]继续阅读
Expression Tree Practice: C# Loops [TOC] C# provides several types of loops. Loop Type Description while Loop Repeats a statement or group of s[......] 继续阅读
表达式树练习实践:C# 循环 [TOC] C# 提供了以下几种循环类型。 循环类型 描述 while 循环 当给定条件为真时,重复语句或语句组。它会在执行循环主体之前测试条件。 for/foreach 循环 多次执行一个语句序列,简化管理循环变量的代码。 do...while 循环 除了它是在循环主[......] 继续阅读
Expression Tree Practice: C# Conditional Statements [TOC] Conditional Statements C# provides the following types of conditional statements: Stateme[......] 继续阅读
表达式树练习实践:C#判断语句 [TOC] 判断语句 C# 提供了以下类型的判断语句: 语句 描述 if 一个 if 语句 由一个布尔表达式后跟一个或多个语句组成。 if...else 一个 if 语句 后可跟一个可选的 else 语句,else 语句在布尔表达式为假时执行。 嵌套 if 语句 您可[......] 继续阅读
表达式树练习实践:C# 运算符 [TOC] 在 C# 中,算术运算符,有以下类型 算术运算符 关系运算符 逻辑运算符 位运算符 赋值运算符 其他运算符 这些运算符根据参数的多少,可以分作一元运算符、二元运算符、三元运算符。本文将围绕这些运算符,演示如何使用表达式树进行操作。 对于一元运算符和二元运[......] 继续阅读