Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Listeler
{
class Program
{
static void Main(string[] args)
{
/*
***** Genetic Kolleksiyonlar
* Queue<T>
* SortedDictionary<K,T>
* List <T>
* Dictionary
**** Non-Generic Kolleksiyonlar
* Queue
* Sortedlist
* Stack
* Arraylist
* Hashtable
* Non Generic Kolleksiyonlar elemanlarını object tipli aldıkları için boxing işlemine maruz kalır,boxing işlemine maruz kaldığı için unboxing işlemi yapariz.
* Koleksiyonlarımıza bazen tek tipli değerler girilirse bu non generic oluyor haliyle boxing ve unboxing işlemi uyguladığı için performans olarak daha yavaş çalışır.
*
* Generic koleksiyonda ise tanımlanan nesnelerin taşıdığı değerler kümesinin tiplerinin bildiğimiz için boxing ve unboxsing işlemine maruz kalmaz direk olarak erişim sağlanır bu durumda performans artışı kaçınılmaz aynı zamanda daha güvenlidir.
*
*
* Generic (Genel Amaçlı) koleksiyonlar.
*
* Diziler değer bazlı aynı tipli elemanları barındırır.
* Koleksiyomlar ise referans tipli new anahtar sözcüğü ile nesne türetebilir aynı zamanda dizilerin aksine koleksiyon olarak türetilen nesneye bağlanabilir bu N kadar gider.
*
* Değer Tipli
* int float double short byte enum char struct
*
* Referans tipli
* string object delegate interface class var
*
* list kullanımı
* Liste dizilerin aksine liste oluşturma listeye ekleme silme sıralama arama gibi işlemleri kendi barındırır daha komplike daha geniş komplex yapıları içerisinde barındırır.
*
* kullanımı
* list<string> liste=new List<string>();
* <listtipi nesne list <tip>();
*
* Arraylist
* Sınırlı fakat dinamik değişebilir tanımlanabilirler
* Dizi boyutlu sınırlı ve sabittir
* Dizinin tüm elemanları aynı türden olur
* Remde uzunluğu kadar yer tutarlar
*
* // ArrayList ile normal dizi arasındaki fark
* Dizinin değer uzunluğu kadar remde yer tutar olaki dizi değerlerinin dışına çıkılırsa da bu değer arraylistte tutulur bu normal int[] i gibi tanımlamalarda index taşıma hatası verir
*
* ArrayList object turunde tum yapıları bünyesinde barındırabilir
*
*
*
* Queue kuyruk
* İlk giren ilk çıkar ilk çıkar algoritması haizdir
* Kuyruk yapısı vardır (first in first out) FIFO prensibne göre çalışır.
* kullanımı
* qu enqueue("demo")
* qu enqueue("demo1")
* qu enqueue("demo2")
*
* cw (qu.dequeue());
* cw (qu.dequeue());
*
* denqueue(sırayi önden terkeder)
* enqueue(arka sıraya katılma)
*
*
* Stack -yıgın yapısı
* ilk giren son çıkar algoritması haizdir.
* son giren ilk çıkar.
*
* Yığın yapısı vardır burada(list-in ,first-out)LİFO prensibine göre çalışmaktadır.
*
* Kullanımı
* st.Push("demo");
* st.Push(121323);
* st.Push(true);
* st.Push('d');
* st.Push(5.5);
*
* cw(st.Pop());
* cw (st.Pop());
*
*
* Sortedlist Kullanımı
*
* Sortedlist sıralı liste sınıfı hastable ile özelllikleri gösterir
* Sortedlist anahtar ve value seklindeki verileri tutar ve sıralama işleminde anahtara göre sıralamayı otomatik yapar.
*
* kullanımı
* SortedList not =new sortedList();
*
* not["matematik"]=100;
* not["fizik"]=50;
*
* not[53]="rize";
* not[52]="ordu";
*
* foreach (var item in not)
*
* string ders=(string ) item.Key
* int not=(int)item.Value
*
* HashTable Kullanımı
* Hastable(kartışık içerikler) verileri key value ilişkisi ile kurulur (anahtar deper şeklinde ) veriler detayı barındırır.
*
* Key Tablosunun ayri bir tabloda değerler ise value tablosunda tutulur
*
* Hastable ders=new Hastable();
*
* Ders["mat"]=50;
* ders[fizik]=70;
*
** foreanch(var item in not)
* string ders (string) item.key
* int not =(int)item.Value
*
*/
}
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team