赵天琪作者

C# notes

1. string

Remember that string takes fixing memory until the program ends.

Null and Empty

In C#, a variable's value is null if it is not set, or if it has been explicitly set to null. A null value typically means the value is not known, or has not yet been set, and is frequently a source of errors in programs, because methods cannot be invoked on null instances of types. An empty string is simply a string with a length of zero. It's a valid instance of a string, but one that currently has no characters in it.

It shows how null can cause an exception. String.IsNullOrEmpty(emptyString) can help.

Some API:

Replacing Parts of Strings

The @:



Date and Time:

Refer to:Working with Dates and Times

Convert type:

Logical Expressions:

It is totally same as it is in C++.

BlueCatの窝
BlueCatの窝

关注机器学习,深度学习,自然语言处理,强化学习等人工智能新技术。

入门字符串
1
相关数据
逻辑技术

人工智能领域用逻辑来理解智能推理问题;它可以提供用于分析编程语言的技术,也可用作分析、表征知识或编程的工具。目前人们常用的逻辑分支有命题逻辑(Propositional Logic )以及一阶逻辑(FOL)等谓词逻辑。

推荐文章
暂无评论
暂无评论~