Bei CodeProject wurde eine GUI für MS Sandcastle vorgestellt:
Sandcastle Help File Builder
Die GUI ist an NDOC angelehnt, ein Umstieg dürfte also relativ problemlos vonstatten gehen - außerdem können etliche NDOC-Settings importiert werden.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Generische Listen, die mit .NET 2.0 eingeführt wurden, sind eine feine Sache. Unter anderem bieten Sie die Möglichkeit, Objekte nach bestimmten Kriterien suchen zu lassen. Leider zeigt das Beispiel in der MSDN die Implementierung der Suchfunktion nur für einfache Typen wie Strings. Wie man eigene Objekte anhand der Eigenschaften suchen kann, zeigt das folgende Beispiel.
Aufgabenstellung: Wir haben Produkte, die in einem Warenkorb liegen können und es soll geprüft werden, ob ein bestimmtes Produkt bereits im Warenkorb liegt. Natürlich könnte man dies mit foreach erschlagen, aber das soll hier ja nicht gezeigt werden ;-).
Zunächst benötigen wir ein eine Klasse Product.cs - zur Demonstration nur mit den relevanten Implementierungen dargestellt:
public class Product() {
private Guid guid;
private string title;
public Guid Guid {
get { return this.guid; }
set { this.guid = value; }
}
public string Title {
get { return this.title; }
set { this.title = value; }
}
}
Weiterhin benötigen wir eine Klasse zur Abbildung der Produkte im Warenkorb, z.B. CartItem:
public class CartItem() {
private Guid productGuid;
private string title;
private Guid guid;
public Guid Guid {
get { return this.guid; }
set { this.guid = value; }
}
public Guid ProductGuid {
get { return this.productGuid; }
set { this.productGuid = value; }
}
public string Title {
get { return this.title; }
set { this.title = value; }
}
}
Und schließlich wird noch der eigentliche Warenkorb Cart.cs benötigt:
public class Cart() {
private Guid guid;
private List<CartItem> items;
public Guid Guid {
get { return this.guid; }
set { this.guid = value; }
}
public List<CartItem> Items {
get { return this.items; }
set { this.items = value; }
}
}
Die Methoden zum Lesen und Schreiben der Daten habe ich zur besseren Übersicht hier weggelassen.
Um nun festzustellen, ob eine Instanz von Product bereits in Cart.Items vorhanden ist, ist folgender Code notwendig:
List<CartItem> existingItems = cart.Items.FindAll(delegate(CartItem item) {
return item.ProductGuid == product.Guid;
}
);
if(0 == existingItems.Count) {
// Produkt ist noch nicht im Warenkorb
}
else {
// Produkt ist bereits im Warenkorb
}
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Peter Laudati hat eine Übersicht erstellt, was bei der Migration von .NET 1.1 Applikationen nach .NET 2.0 zu beachten ist.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Unter dem Titel "The Developer Highway Code" hat Microsoft UK ein PDF für Entwickler bereitgestellt, in dem die folgenden Themen behandelt werden:
- Integrating Security into the Lifecycle
- Security Objectives
- Web Application Security Design
- Threat Modelling
- Security Architecture and Design
- Security Code Review
- Security Deployment Review
Berücksichtigt werden .NET 1.1 und 2.0.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Kathy Kam hat einige vermutlich relativ unbekannte Parameter für die String-Formatierung mit .NET veröffentlicht. Prädikat lesenswert ;-)
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Arno Nel hat eine extrem umfangreiche Liste verfügbarer Artikel zu ASP.NET 2.0 Security, Rolemanagement und Membership sowie Provider zusammengestellt.
Wer hier nichts findet, ist selbst schuld ;-)
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Manuel Abadia hat in seinem Blog zwei drei Artikel zur Einführung in die ObjectDataSource verfasst:
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Microsoft hat einen neuen Coding-Contest gestartet: "Made in Express". Wichtigstes Kriterium: die eingereichte Idee muß mit den Express Editions der .NET 2.0 Werkzeuge erstellt sein.
Details zum Contest gibt es bei S. 'Soma' Somasegar und auf der Contest-Website.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
The MSDN article ".NET Pet Shop 4: Migrating an ASP.NET 1.1 Application to 2.0" shows the best practices for building enterprise, n-tier .NET 2.0 applications that may need to support a variety of database platforms and deployment scenarios.
It also shows the ASP.NET 2.0 improvements like Membership or MasterPages that simplify development of n-tier applications with .NET 2.0.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
Brad Abrams has posted the .NET Framework 2.0 poster:

Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5