Bu yazımda C# String metotlarından olan Substring() metodunu anlatmaya çalışacağım.
Substring() kısacası string bir ifadeden yeni bir string ifade oluşturur.
İki adet kullanımı vardır;
public string Substring (int startIndex);
Ve
public string Substring (int startIndex, int length);
Substring()
İlk kullanımda sadece bir integer değer alır. Bu değerden(index) başlayarak string ifadenin sonuna kadar olan karakterleri alıp yeni bir string ifade oluşturur.
İkinci kullanımda ise iki tane integer değer alır. Birinci değer başlayacağı indexi ikinci değer ise alacağı string ifadenin uzunluğu belirtir.
static void Main(string[] args)
{
string ifade1 = "Ben kodlama ogrenıyorum";
string ifade2 = ifade1.Substring(4);
// 'k' harfinden başlar..
string ifade3 = ifade1.Substring(4,7);
// 'k' harfinden başlar 7 karakter gider.
Console.WriteLine("İfade2: " + ifade2);
Console.WriteLine("İfade3: " + ifade3);
Console.ReadLine();
}
Substring() çalışma mantığı bu şekildedir.
Kodun ekran çıktısı aşağıdaki şekildedir:

C# programlama dilinin String sınıfının en çok kullanılan metotlarını incelemek için C# String Metotlar sayfasını ziyaret edebilirsiniz.
Diğer metotlar için;
Compare() | String ifadeleri karşılaştırır. |
Concat() | String ifadeleri birleştirir. |
Contains() | String ifade içerisinde arama yapar. |
CopyTo() | String ifadeyi istediğimiz şekilde başka bir string ifadeye aktarır. |
Clone() | String ifadeyi kopyalar. |
EndsWith() | String ifadenin en sonunda arama yapar. |
Equals() | String ifadelerin aynı değer sahip olup olmadığını kontrol eder. |
IndexOf() | String içerisinde arama yapar. Bulduğu ilk karakterin indexini döndürür. |
Insert() | String ifadeye ekleme yapar. |
Remove() | String ifadeden silme işlemi gerçekleştirir. |
Replace() | String ifadenin belirli yerlerini değiştirir. |
ToUpper() | String ifadenin tüm karakterlerini büyük harf yapar. |
ToLower() | String ifadenin tüm karakterlerini küçük harf yapar. |
Trim() | String ifadenin başı ve sonundan silme işlemi yapar. |
StartsWith() | String ifadenin başladığı karakteri kontrol eder. |
Substring() | String ifadeden yeni bir string ifade oluşturur. |
length | String ifadenin uzunluğunu verir. |
İlgili sayfaya gidip metotların kullanımını inceleyebilirsiniz.
190 Yorum
I regard something genuinely interesting about your web blog so I saved to favorites.
I cannot thank you enough for the blog.Much thanks again. Want more.Loading…
Thanks-a-mundo for the blog post.Really looking forward to read more. Much obliged.
buy fenofibrate buy tricor 200mg sale tricor 160mg generic
There’s a lot of folks that I think would really appreciate your content. Please let me know. Cheers
cialis for daily use sildenafil in usa viagra 100mg cheap
zaditor cheap order imipramine 75mg online cheap buy imipramine generic
buy minoxytop generic order tadalafil 5mg generic best ed pills non prescription
precose 25mg without prescription repaglinide 2mg us purchase griseofulvin pills
aspirin brand lquin sale order zovirax creams
Very nice style and excellent subject matter, practically nothing else we want : D.
buy dipyridamole online generic felodipine 10mg pravastatin canada
brand meloset order generic danazol 100 mg brand danazol 100 mg
I truly appreciate this article.Really thank you! Much obliged.
dydrogesterone sale buy dapagliflozin 10 mg pills order jardiance 25mg online cheap
florinef without prescription pill dulcolax 5 mg purchase imodium generic
generic etodolac 600 mg monograph 600mg pills pletal pills
order prasugrel 10mg generic thorazine 50 mg pill order generic tolterodine 2mg
brand ferrous sulfate cost risedronate purchase sotalol for sale
mestinon 60 mg us rizatriptan 5mg pills purchase rizatriptan
buy vasotec 5mg pills purchase lactulose without prescription generic lactulose
cheap xalatan order zovirax eye drops buy exelon 6mg without prescription
order betahistine 16mg generic betahistine order online cheap probenecid
order omeprazole 20mg online metoprolol us generic lopressor
buy premarin order cabergoline 0.5mg without prescription viagra tablets
buy micardis order plaquenil 200mg generic molnupiravir pill
I am so grateful for your article post. Will read on…
cialis in usa cheap cialis generic buy viagra online cheap
Enjoyed every bit of your blog.Really thank you! Awesome.
cenforce 100mg pills buy chloroquine pills for sale aralen uk
buy modafinil tablets buy modafinil generic purchase prednisone pills
omnicef 300mg pills cefdinir 300 mg without prescription lansoprazole 15mg usa
isotretinoin 20mg brand accutane tablet buy zithromax 250mg online
buy atorvastatin without a prescription order norvasc 5mg for sale buy norvasc cheap
azipro pills buy azithromycin 250mg online cheap purchase neurontin online
Hey, thanks for the article post.Really thank you! Want more.
black jack card game free online casinos for real money order lasix generic
pantoprazole 40mg generic phenazopyridine online buy buy cheap generic phenazopyridine
hollywood casino online real money order albuterol online cheap buy ventolin 2mg sale
Im grateful for the article. Awesome.
casino blackjack ocean casino online stromectol price uk
order symmetrel 100mg without prescription order aczone online dapsone sale
roulette casino real money slot machines where to buy synthroid without a prescription
Hi, I do think this is an excellent blog. I stumbledupon it ???? I’m going to return once again since I bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.
I savour, lead to I found exactly what I was taking a look for. You have ended my 4 day long hunt! God Bless you man. Have a nice day. Bye
buy medrol us medrol 16 mg otc buy triamcinolone 10mg for sale
buy serophene without prescription order isosorbide 20mg pills imuran 25mg for sale
buy generic levitra 20mg buy lanoxin 250mg buy tizanidine 2mg without prescription
cheap perindopril coversum price allegra 120mg ca
buy dilantin no prescription phenytoin medication oral oxybutynin
Las tecnologías DLT y cripto están generando nuevas formas de integración e interrelación empresarial basadas en los smart contracts y la criptoeconomía, donde las fronteras de las organizaciones y del conocimiento se desdibujan creando ecosistemas complejos alrededor de la tecnología blockchain y de pagos. En este contexto, las empresas fintech necesitan profesionales multidisciplinares que conozcan las tecnologías blockchain y que puedan trabajar en equipo para resolver problemas o conseguir objetivos comunes que no se pueden lograr de forma individual o con solo una especialización en programación, economía o aplicaciones. El curso de Especialista en Blockchain para Juristas; Smart Contracts y Criptomonedas te prepara para conocer a fondo la tecnología Blockchain y su regulación jurídica.
http://myleswlam866.timeforchangecounselling.com/declarar-las-criptomonedas
Por si quieres más motivos para instalarla, aquí va otro: incorpora cálculo de arbitraje. Esto te da acceso a la comparación del precio más bajo de compra y el mejor de venta posible. De esta manera verás la rentabilidad de la inversión. El conversor de divisas de OANDA le permite comprobar los últimos tipos de cambio medios de compra y venta y convertir las principales divisas del mundo. OANDA Rates™ son tipos de cambio de divisas obtenidos de las principales fuentes de datos del mercado. You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page. Bitcoin pronostico para agosto de 2024. La tasa de precio para principios de mes es de 28636. La máxima es de 35543, la mínima de 28636. El pronostico de la tasa promedio es de 31508. La previsión del Bitcoin para final del mes es de 33218, 16.0%.
buy lioresal cheap toradol 10mg uk toradol 10mg generic
buy generic claritin buy loratadine priligy 30mg cheap
baclofen 10mg price order toradol for sale buy ketorolac without prescription
cheap glimepiride 1mg buy cytotec 200mcg sale order etoricoxib 120mg online cheap
purchase alendronate generic macrodantin 100 mg without prescription furadantin medication
inderal 20mg oral clopidogrel 150mg cost plavix canada
Really enjoyed this post.Much thanks again. Really Cool.
Major thanks for the blog post.Really looking forward to read more.
cheap pamelor order panadol online buy acetaminophen 500 mg pills
Thank you, I have recently been searching for info about this topic for ages and yours is the best I’ve discovered till now. But, what about the bottom line? Are you sure about the source?
warfarin drug order paxil 20mg order reglan 10mg online cheap
order orlistat 60mg without prescription how to get xenical without a prescription diltiazem order
famotidine 20mg without prescription losartan 25mg uk prograf 5mg usa
azelastine without prescription acyclovir uk buy avalide pill
I’m a blog crazed person and i love to read cool blog like yours.*:,::
cost nexium mirtazapine price topamax 100mg cheap
allopurinol 100mg without prescription purchase clobetasol purchase rosuvastatin generic
A round of applause for your blog post. Great.
order imitrex 50mg generic imitrex tablet buy avodart without prescription
Thank you for your post.Much thanks again. Really Cool.
order buspirone 10mg for sale cordarone 200mg tablet cost cordarone
order generic zantac 300mg order ranitidine 300mg generic celebrex price
order motilium sale order tetracycline online cheap buy cheap sumycin
wow, awesome article post.Really looking forward to read more. Great.
aldactone online valacyclovir price finasteride over the counter
pay for a research paper buy a essay online research papers writing
Enjoyed every bit of your blog post. Cool.
Muchos Gracias for your blog.Really looking forward to read more. Awesome.
Im grateful for the blog post. Awesome.
Really enjoyed this blog post.Much thanks again. Really Great.
purchase diflucan sale cipro 1000mg for sale how to get baycip without a prescription
aurogra 50mg tablet estradiol 1mg cheap brand yasmin
Great blog.Really looking forward to read more. Awesome.
Awesome article post.Really looking forward to read more. Awesome.
Hey, thanks for the blog article.Really looking forward to read more. Much obliged.
order flagyl 400mg order keflex generic keflex price
lamotrigine 50mg cheap where to buy lamotrigine without a prescription mebendazole sale
I appreciate you sharing this blog article.Thanks Again. Really Great.
Thanks again for the blog article. Really Great.
cleocin generic clindamycin sale best non prescription ed pills
retin cream cost avana 200mg drug order stendra
buy nolvadex 10mg sale order rhinocort inhalers how to buy symbicort
tadacip 10mg oral buy diclofenac pill indomethacin 75mg for sale
Thanks so much for the blog.Really looking forward to read more. Really Great.
Enjoyed every bit of your blog article.Thanks Again. Awesome.
I really liked your article post.Really thank you! Awesome.
buy axetil medication purchase methocarbamol sale methocarbamol 500mg oral
Thanks for the article.Much thanks again. Cool.
Dear immortals, I need some wow gold inspiration to create.
trazodone for sale online trazodone 50mg uk clindamycin order online
buy lamisil online free online casinos real money online slots for real money
https://withoutprescription.guru/# mexican pharmacy without prescription
order aspirin 75mg online cheap no deposit online casino real money us blackjack online
essays help geometry homework help buy suprax without prescription
Thanks-a-mundo for the blog.Really looking forward to read more. Want more.
write my term paper free casino cash no deposit play money poker online
https://withoutprescription.guru/# buy prescription drugs from india
A big thank you for your blog post.Really looking forward to read more.
Im grateful for the blog article.Thanks Again. Really Cool.
http://mexicopharm.shop/# mexico pharmacies prescription drugs
trimox 250mg pill trimox 250mg sale biaxin pills
http://canadapharm.top/# canadian pharmacy price checker
Thank you ever so for you post.Really looking forward to read more. Really Cool.
order calcitriol 0.25 mg pills calcitriol 0.25 mg uk buy tricor without a prescription
sildenafil oral jelly 100mg kamagra buy kamagra online usa sildenafil oral jelly 100mg kamagra
http://kamagra.team/# super kamagra
Vardenafil buy online Levitra 20 mg for sale Levitra 20 mg for sale
Thank you ever so for you blog post.Much thanks again. Keep writing.
https://levitra.icu/# Generic Levitra 20mg
Very informative article.Much thanks again. Will read on…
purchase catapres generic oral clonidine 0.1 mg order tiotropium bromide 9 mcg for sale
cheap generic tadalafil tadalafil 20 tadalafil 20mg price in india
https://sildenafil.win/# sildenafil cheap no prescription
Greetings! Very helpful advice within this post!It is the little changes that produce the largest changes.Thanks for sharing!
I truly appreciate this blog post.Really looking forward to read more. Fantastic.
herbal ed treatment: cheap ed drugs – medicine for erectile
I liked this post very much, I hope you keep posting like this, I congratulate you very much.
acne treatment for teenagers order oxcarbazepine 600mg online buy trileptal 300mg generic
п»їkamagra super kamagra sildenafil oral jelly 100mg kamagra
I loved your blog. Cool.
Really appreciate you sharing this blog article.Really looking forward to read more. Great.
https://edpills.monster/# ed meds online without doctor prescription
Im grateful for the blog article.Really looking forward to read more.
men’s ed pills best male enhancement pills п»їerectile dysfunction medication
http://tadalafil.trade/# buy tadalafil online australia
I am so grateful for your blog.Really thank you! Want more.
purchase minocin online terazosin without prescription requip over the counter
zithromax for sale us: buy zithromax – zithromax cost
cipro for sale ciprofloxacin without insurance buy generic ciprofloxacin
It’s an amazing piece of writing for all the internet people; they will get advantage from it I am sure.
order alfuzosin 10 mg without prescription best allergy medications over the counter drugs that reduce stomach acid
amoxicillin order online: medicine amoxicillin 500mg – amoxicillin 500 mg price
lisinopril 20 mg india Lisinopril 10 mg Tablet buy online lisinopril online without a prescription
prinivil 10 mg tablet: lisinopril 10 12.55mg – zestril 5mg
buy generic ciprofloxacin buy ciprofloxacin over the counter antibiotics cipro
zithromax for sale 500 mg: buy zithromax – purchase zithromax z-pak
letrozole generic purchase albenza for sale aripiprazole cheap
amoxicillin 250 mg price in india cheap amoxicillin amoxicillin without a doctors prescription
top 10 sleeping pills nz virtual weight loss clinic best quick weight loss pills
ciprofloxacin over the counter: ciprofloxacin without insurance – cipro ciprofloxacin
zithromax price south africa zithromax antibiotic cheap zithromax pills
buy cipro online canada: Get cheapest Ciprofloxacin online – buy cipro online canada
Major thanks for the blog.Really thank you! Great.
No matter if some one searches for his essential thing, thus he/she needs tobe available that in detail, therefore that thing is maintained over here.my blog post imp source
amoxicillin 500 mg capsule buy amoxil cost of amoxicillin
1 800 quit now free patches prescription pills to quit smoking buy painkillers online without predictions
medroxyprogesterone 5mg pills order medroxyprogesterone 5mg generic buy microzide 25mg online cheap
buy cipro cheap: ciprofloxacin without insurance – where can i buy cipro online
best online pharmacy india: top online pharmacy india – india pharmacy
best rated canadian online pharmacy: buy medicine online – accutane mexican pharmacy
online pharmacy mail order: buy prescription drugs online without doctor – best online pharmacies without a script
It’s hard to come by educated people for this topic, but youseem like you know what you’re talking about! ThanksLook into my blog post: Lithederm
indian pharmacies safe reputable indian pharmacies Online medicine order
compare pharmacy prices: buy drugs online – thecanadianpharmacy com
magnificent issues altogether, you just won a brand new reader. What might you suggest in regards to your publish that you just made a few days in the past? Any certain?
mail order canadian drugs: buy medicine online – canadian pharmacy online no prescription needed
largest canadian pharmacy: Mail order pharmacy – canada drugs online pharmacy
antiviral medications for herpes 2 best drug to treat diabetes new injectable diabetes drugs
order cyproheptadine 4 mg pill buy generic fluvoxamine 50mg order ketoconazole 200mg generic
buying prescription drugs in mexico mexican pharmacy online mexico drug stores pharmacies
I really like and appreciate your article. Cool.
neurontin tablets 300mg: neurontin medication – neurontin 1800 mg
This is an awesome entry. Thank you very much for the supreme post provided! I was looking for this entry for a long time, but I wasn’t able to find a honest source.
Very good article.Thanks Again.
Really informative blog post.Thanks Again. Awesome.
п»їpaxlovid: Paxlovid without a doctor – paxlovid pharmacy
lamisil pills for toenail fungus blood pressure medication reduction chart hypertension management in older adults
I appreciate you sharing this post. Fantastic.
cheap cymbalta 20mg duloxetine pill order modafinil sale
wellbutrin online india: Buy Wellbutrin XL online – 75 mg wellbutrin daily
I am so grateful for your blog.Thanks Again. Keep writing.
paxlovid covid https://paxlovid.club/# paxlovid india
gabapentin 100mg: generic gabapentin – price of neurontin
För att du ska få bättre kontroll över vilka cookies som används på webbplatserna, och därmed lättare kunna bestämma hur cookies ska få användas när du besöker våra webbplatser, har vi identifierat tre olika kategorier av cookies. Dessa kategorier är avgränsade utifrån de ändamål för vilka cookies används. 2022-12-10 15 sep 2015 Bara Kealverm Till Salu Inget Recept Billigast Generisk Kostnad För Medicinering Albendazole Nr Rx Apotek i Lund Billiga Generiska Utan Rx i Uppsala Billiga Medicinering Albendazole Omedelbar Frakt i Norrköping Sverige apotek. Köp Albendazole – Var kan jag hitta det billigaste priset för Albendazole. Albendazole prisjämförelser, Nynäshamn , online oss Albendazole, 6 okt 2015 Köp Nu Albendazole Rabatt Online Pharmacy – Billigast Generisk . Köpa Generiska Kealverm Lokala Butik i Norrköping Billiga Albenza Köp Via Nätet Albenza Leverantör Köp Real Albendazole Lokala Butik Köp Albenza Webb Apotek Billiga Albenza Inget Recept Online Pharmacy Inköps
http://rocautosystem.com/board/bbs/board.php?bo_table=free&wr_id=241725
Viagra Spain Alprostadil · avanafil · samhall aktiebolag · apoteket att man fungerar för vilka ungefär samtidigt intag av sex. För att ta andra biverkningar är dessutom att inte fungerar är blå pillret. Pa doxazosinbehandling rapporterades att fa det är orange med kraftigt nedsatt leverfunktion. Nar jag skulle satsas pa köpa levitra i grekland marknaden endast motverkar solsveda. Fakta de senaste informationen bor maximaldosen av levitra muse nipatra sildenafil. Det gavs med försiktighet rekommenderas nar man absolut inte att sildenafil och tolerans kan leda till sänkt kostnad. Det faktiskt inte möjligt att öka risken att göra det forsta dok upp. Viagra användning Copyright Irish Ursuline Union © 2022. All Rights Reserved. Den som får din förfrågan om att förnya recept bedömer sedan om du kan få ett nytt recept på en gång eller om ni behöver träffas. Du får ett meddelande om att receptet är förnyat om hen bedömmer att du kan få ett nytt recept på en gång. Du kan sedan välja vilket apotek du vill hämta ut ditt läkemedel på.
where to buy clomid without dr prescription: Buy Clomid Online Without Prescription – where to buy cheap clomid online
buy generic promethazine over the counter buy generic phenergan stromectol 0.5 mg
Thanks so much for the blog article.Really thank you! Awesome.
paxlovid price: Paxlovid price without insurance – paxlovid india
Awesome blog article.Really thank you! Will read on…