CSharp etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
CSharp etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

1 Mart 2008 Cumartesi

Otomatik Property Tamamlama

.Net ile sınıflarımıza (class) özellik (property) eklerken kullandığımız yöntem öncelikle property'nin alacağı ve döndüreceği değer için bir private değişken oluşturmak, ardından da get{} ve set{} bloklarının içine tüm uygulamalarda değişmeyen return xxx, xxx=value yazmak şeklindeydi.


İçinde hiçbir işlem mantığı olmayan gereksiz bloklar yazmaya artık gerek yok!



Aslında kod derlendiğinde her iki property de aynı şekilde uygulanıyor. Tek fark yeni yöntemde gereksiz tekrarları bizim için compiler'ın tamamlıyor olması.

Ek olarak, otomatik tamamlama şeklinde yazdığınız bir özelliği ReadOnly yapmak için set in başına private getirmeniz yeterli.

public string Soyad { get; private set; }

27 Şubat 2008 Çarşamba

C# Ekibinden Bloglar

Dan Fernandez
Dan is the Visual C# Product Manager and posts interesting bits of C# news from both inside and outside Microsoft.

Raj Pai
Raj Pai is the Group Program Manager of the C# team. He manages the team of PMs that drive the design and delivery of Visual C# and the debugger. Check out Raj’s blog for news on C# and for perspectives on what’s it’s like to be a PM on the C# team.

Charlie Calvert
Charlie Calvert is the Program Manager for the Visual C# Community.

Rusty Miller
Rusty is the QA manager for Visual C# and the Visual Studio debugger. Check out his blog for discussions on software testing, test tools, and the testing techniques they’re trying out. On the side, he spends time on Visual Studio side-by-side issues.

Scott Wiltamuth
Scott is the Product Unit Manager for C#. His group’s mission is to grow a large and highly satisfied base of C# developers. He is one of the designers of the C# language.

Shaykat Chaudhuri
Shaykat is the Release PM for C#. Since he was responsible for the release of Everett, you will likely see Everett related tips on his blog. For the Whidbey release of C#, Shaykat is working on samples and general best practice processes.

The C# FAQ
The C# team posts answers to common questions.

11 Şubat 2008 Pazartesi

Türkçe Online C# Kaynakları

http://www.csharpnedir.com/
CSarp için eşsiz bir kaynak. Tamamı Türk yazılımcılardan oluşmuş bir grup. Emeği geçen herkese teşekkür ederek linki veriyorum.

http://www.csharpturk.net/

http://www.yazgelistir.com/
Yazgelistir.com , Türkiye’de yazılım geliştirme alanında çalışan veya bu alanda kendini geliştirmek, tartışmak ve bilgilerini paylaşmak isteyenleri bir araya getirmeyi amaçlayan bir oluşum.

http://www.programlama.com/

http://www.msakademik.net/
"Microsoft Akademik Yazılım Geliştiriciler Web Sitesi, "bilgi paylaşımı" ilkesi ile Türkiye'deki üniversite ögrencilerinin ve akademisyenlerin Microsoft'un en son yazılım geliştirme teknolojilerini yakından takip edebilmelerine yardımcı olmak üzere kurulmuştur."