C# metadata yog dab tsi?
C# metadata yog dab tsi?

Video: C# metadata yog dab tsi?

Video: C# metadata yog dab tsi?
Video: The best way to create a string in C# that you shouldn't use 2024, Hlis ntuj nqeg
Anonim

nws txhais tau tias nws tuav cov ntaub ntawv hais txog cov ntaub ntawv uas yog koj nplooj html. Thaum peb tham txog C#, Metadata yog khaws cia rau hauv ib seem ntawm a. NET Framework portable executable (PE) file, thaum Microsoft intermediate language (MSIL) khaws cia rau lwm ntu ntawm PE cov ntaub ntawv. Metadata tables siv lwm lub rooj thiab heaps.

Ua li no, sib dhos metadata hauv C # yog dab tsi?

Hauv. NET, metadata yog binary cov ntaub ntawv uas piav txog peb cov kev pab cuam uas yog khaws cia nyob rau hauv hom lus runtime portable executable ntaub ntawv los yog nyob rau hauv lub cim xeeb. Txhua hom ntaub ntawv thiab cov tswv cuab uas tau txhais thiab siv nyob rau hauv ib qho kev sib dhos tau piav nyob rau hauv metadata.

Kuj Paub, qhov kev xav C # yog dab tsi? Kev xav hauv C# yog siv los retrieve metadata ntawm hom ntawm runtime. Hauv kev siv xav txog , koj tau txais cov khoom ntawm hom "Type" uas tuaj yeem siv los sawv cev rau cov rooj sib txoos, hom, lossis cov qauv. Koj siv tau xav txog los tsim ib qho piv txwv ntawm hom dynamically thiab txawm invoke txoj kev ntawm hom.

Ib yam li ntawd, piv txwv ntawm metadata yog dab tsi?

Ib txhia piv txwv ntawm qhov yooj yim metadata yog tus sau, hnub tsim, hnub hloov kho, thiab cov ntaub ntawv loj. Metadata Nws kuj yog siv rau cov ntaub ntawv tsis zoo xws li dluab, video, nplooj ntawv web, spreadsheets, thiab lwm yam. Cov lus piav qhia thiab cov ntsiab lus tseem ceeb meta tags feem ntau yog siv los piav qhia cov ntsiab lus hauv nplooj ntawv web.

Dab tsi yog metadata hauv asp net?

Microsoft. Net Metadata Metadata hauv. Net yog cov ntaub ntawv binary uas piav txog cov yam ntxwv ntawm cov peev txheej. Thaum lub sijhawm ua haujlwm ntawm ib qho program Just In Time (JIT) compiler ntawm Common Language Runtime (CLR) siv cov Metadata thiab hloov Microsoft Intermediate Language (MSIL) rau hauv cov cai ib txwm muaj.

Pom zoo: