Как получить доступ к компилятору C#?
I would like to know, if i want to add another check to my code during run-time, beside the regular code check, what do i need to do? for example counting how many times I've got the letter 'a' in my code. or how many times i have a variable containing the letter 'a'. i'm assuming that the compiler does that part, so do i need to inherit from the compiler classes in order to get access to the words in my code? or does it have to do with visual studio? i'm sort of stuck and have to give in a school project very soon i would be very happy if anyone can help me!
Что я уже пробовал:
я попытался изучить классы компилятора c#, но мне не очень повезло...
Richard MacCutchan
Что именно должен делать проект?
Afzaal Ahmad Zeeshan
Почему бы вам просто не прочитать файл исходного кода и не сделать быстрое сканирование?