03.net6必须熟悉的类

C#必须熟悉的类

值和实例

true,false ,“”,‘a’,34f,34,34m,@“ggd”,$“gg{age}”

基本类型和常用类型

byte int char decimal float double string DateTime TimeSpan bool

Array

dynamic

var 自动推断类型

常用类型

Object

Console

Math

GUID

Regex

Random

StringBuilder

Convert

常用运算符

typeof(DateTime)

as

??

?

yield

反射有关的类

Assembly

Type

PropertyInfo

MemberInfo

MethodInfo

FieldInfo

Activator

AppDomain

Attribute

[Obsolete]

[Serializable]

[AttributeUsage]

Ado.net类型

SqlConnection

SqlTransaction

SqlDataReader

SqlCommand

SqlParameter

DBNull

集合类

ICollection

IEnumerable

IQueryable

IList

ICloneable

List,List

Array

ArrayList

LinkedList 链表

LinkedListNode

Queue

HashSet 去重,交差并补

Hashtable

DictionaryEntry

Dictionary,Dictionary

KeyValuePair

SortedSet 去重加排序

SortedList

SortedDictionary

线程安全版本的集合

ConcurrentQueue

ConcurrentStack

ConcurrentBag

ConcurrentDictionary

BlockingCollection

委托和事件类

Func<>

Action<>

IO和文件操作类

Drive

DriveInfo

Directory

DirectoryInfo

File

FileInfo

Path

FileStream

StreamWriter

StreamReader

MemoryStream

编码类

Encoding

异常类

Exception

配置类

ConfigurationManager

线程和进程类

Thread

ThreadStart

ParameterizedThreadStart

ThreadPool

Task

TaskFactory

Process

AsynCallback

IAsyncResult

ManualResetEvent

Parallel

Monitor

同步等待

信号量等待

限时等待

序列化和反序列化

[Serializable]

BinaryFormater

XmlSerializer

JavaScriptSerializer

JsonConvert

Xml

XmlDocument

XmlNode

Gdi

Graphics

Pen

Brush

Bitmap

Rectangle

PointF

Point

Font

SolidBrush

Image

枚举:

Color

Pens

Brushes

ImageFormat

lambda和Linq

集合查询语言

陈述式语法(方法语法)

关键字式语法(查询表达式语法)

linq to object(Enumerable)

Enumerable

Where()

Select()

Min()

Max()

OrderBy()

GroupBy()

linq to sql(Queryable)

表达式目录树是一种数据结构,是一种目录树

Queryable

Expression

ConstantExpression

BinaryExpression

ParameterExpression

MethodCallExpression

linq to xml

加密解密

md5加密:不可逆加密

HashAlgorithm

CryptoConfig

des对称可逆加密

MemoryStream

CryptoStream

DESCryptoServiceProvider

rsa:不对称可逆加密

KeyValuePair

RSACryptoServiceProvider

Http请求

HttpWebRequest

HttpWebResponse

HttpClient

CookieContainer

Stream

StreamReader

HttpStatusCode

WebException

网络编程

IPAddress

IPEndPoint

Socket

AddressFamily.InterNetwork

SocketType.Steam

ProtocolType.Tcp

包:SuperSocket

log4net

XmlConfiguration

LogManager

ILog

HtmlAgilityPack

基于xpath解析

HtmlDocument

HtmlNodeCollection

HtmlNode

WebService服务

WebService

[WebMethod]

WCF服务

[ServiceContract]

[OperationContract]

[DataContract]

[DataMember]

程序集:System.ServiceModel

ServiceHost

UnitTest(.netFramework)

[TestClass]

[TestMethod]

Assert

IOC之Unity库

IUnityContainer

UnityContainer

[Dependency]

[InjectionConstructor]

[InjectionMethod]

TransientLifetimeManager

ContainerControllerdLifetimeManager

PerThreadLifetimeManager

HierarchicalLifetimeManager

mssqlserver语法

begin tran

update [user] set [name]=‘xie’ where id=1

waitfor delay ‘0:0:5’

update [company] set [name]=‘xie’ where id=1

commit tran

is null

存储过程:统计,定时任务

触发器:基于事件的

视图

redis语法和类

包:ServiceStack.Redis 付费

PooledRedisClientManager

RedisClientManagerConfig

IRedisClient

ICacheClient

包:StackExchange.Redis

你可能感兴趣的:(Net6,.net)