CLS C# yog dab tsi?
CLS C# yog dab tsi?

Video: CLS C# yog dab tsi?

Video: CLS C# yog dab tsi?
Video: Common Type System (CTS) | Common Language Specification (CLS) | .Net Framework 2024, Kaum ib hlis
Anonim

CLS sawv cev rau Cov Lus Qhia Kom Paub. Nws yog cov txheej txheem tsawg kawg nkaus thiab yuav tsum muaj cov lus hais tias a. NET hom lus yuav tsum siv thiab nkag siab. NET. Ua CLS Kev ua raws cai txhais tau hais tias koj tuaj yeem sau cov lej uas tuaj yeem noj tau los ntawm txhua hom lus uas tuaj yeem muab tso ua ke thiab khiav ntawm CLR.

Ntxiv rau qhov no, CLS C# yog dab tsi?

CLS . CLS stands rau Common Language Specification thiab nws yog ib tug subset ntawm CTS. Nws txhais cov kev cai thiab kev txwv uas txhua yam lus yuav tsum ua raws li uas khiav hauv qab. NET moj khaum. Cov lus uas ua raws li cov cai no tau hais tias yog CLS Ua raws.

Ib yam li ntawd, MSIL yog dab tsi hauv C#? MSIL stands rau Microsoft Intermediate Language. Thaum lub sij hawm compile, lub compiler hloov lub hauv paus code rau hauv Microsoft Intermediate Language ( MSIL ) Microsoft Intermediate Language ( MSIL ) yog CPU-kev ywj pheej ntawm cov lus qhia uas tuaj yeem hloov pauv tau zoo rau cov cai ib txwm muaj.

Tsis tas li ntawd, CLS txhais li cas?

Ib Hom Lus Specification ( CLS ) yog ib daim ntawv uas hais tias yuav ua li cas cov khoos phis tawj tuaj yeem hloov mus rau Common Intermediate Language (CIL) code. Thaum ob peb hom lus siv tib lub bytecode, qhov sib txawv ntawm qhov kev pab cuam tuaj yeem sau ua hom lus sib txawv.

Clr thiab Cls yog dab tsi?

Teb: Cov CLR stands rau Common Language Runtime thiab nws yog Kev Ua Ib puag ncig. Nws ua hauj lwm raws li ib txheej ntawm Operating Systems thiab cov ntawv sau rau hauv. NET hom lus uas ua raws li Cov Lus Qhia Tshwj Xeeb ( CLS ).

Pom zoo: