Around and About .NET World

Il blog di Marco Minerva
posts - 1671, comments - 2232, trackbacks - 2135

My Links

News

Contattami su Live Messenger:


MCTS: Windows, Web, Distributed Applications & SQL Server

MCPD: Enterprise Applications

Tag Cloud

Archives

Post Categories

Links

lunedì 5 marzo 2007

Gli articoli della Knowledge Base di Microsoft più consultati

Come riportato in un messaggio inviato sul newsgroup microsoft.public.it.windows.vista da D@ny, alla pagina http://support.microsoft.com/gp/top50 sono elencati i 50 articoli della Knowlodge Base di Microsoft attualmente più consultati.

Technorati Tags:

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) | Filed Under [ Tutto & Oltre :-) ]

Ultimo posto per Windows Live OneCare

Come si legge in questo articolo di Computerworld:

Microsoft's Windows Live OneCare came in dead last out of a group of 17 anti-virus programs tested against hundreds of thousands of worms, viruses, Trojan horses and other malware.

I risultati della ricerca sono disponibili sul sito AV-Comparatives.

Technorati Tags:

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (8) | Filed Under [ Tutto & Oltre :-) Windows Related ]

Extension Methods

Tra le numerosissime novità del .NET Framework 3.5 che sto sperimentando in questi giorni, oggi voglio segnalare gli Extension Methods. Come riportato qui:

The basic idea is that the set of methods available on an instance of a particular type is open to extension. In effect, we can add new methods to existing types.

Supponiamo di eseguire sempre la stessa operazione su un certo tipo di dati, ad esempio ottenere l'array di byte a partire dal contenuto di una stringa. Una soluzione tipicamente adottata fino ad oggi consiste nel definire una classe statica con il metodo che esegue l'operazione, quindi richiamarlo utilizzando qualcosa del tipo:

string message = "Messaggio"; byte[] buffer = Utils.GetBytes(message);

In una situazione del genere è possibile definire un Extension Method:

1 public static class Utils 2 { 3 public static byte[] GetBytes(this string str) 4 { 5 return Encoding.Default.GetBytes(str); 6 } 7 }

La parola chiave this (linea 3) indica che il metodo GetBytes è un'estensione della classe String. In pratica, la classe String viene arricchiata con un nuovo membro, che può essere richiamato come qualsiasi altro:

string message = "Messaggio"; byte[] buffer = message.GetBytes(); //Stesso risultato del primo esempio.

Anche l'IntelliSense di Visual Studio visualizzerà il nuovo metodo, segnalando che si tratta di un'estensione della classe. Gli Extension Methods sono supportati sia da C# sia da Visual Basic. Quest'ultimo linguaggio non supporta la parola chiave this, quindi per definire un Extension Method è necessario specificare l'attributo <Extension()> (contenuto nel namespace System.Runtime.CompilerServices.ExtensionAttribute) prima della dichiarazione del metodo. Le estensioni devono essere metodi statici contenuti in classi statiche.

Technorati Tags: , ,

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (5) | Filed Under [ C# VB .NET Orcas & .NET 3.5 ]

Paint.NET 3.01

Qualche giorno fa è stata rilasciata la release 3.01 di Paint.NET. Si tratta di un aggiornamento che si limita a risolvere alcuni bug della versione 3.0:

  • Fixed: Crash when trying to save a palette with a blank name
  • Fixed: Changing an image's DPI resolution did not set its "dirty" flag (you would not be asked to save changes)
  • Fixed: Error messages at startup were covered by the splash screen
  • Fixed: Crash when a modal dialog was open (such as an effect) when the user tried to logoff/restart/shutdown Windows, and they chose to save their images
  • Mitigated some CPU usage issues when the app was minimized and a complex selection was active

Per il download, fare clic qui.

Technorati Tags: ,

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (3) | Filed Under [ Tutto & Oltre :-) ]

Oltre Reflector

Su CodeProject è disponibile un programma chiamato AutoDiagrammer con cui è possibile generare il diagramma delle classi di un assembly .NET attraverso la Reflection... Una sorta di complemento per Reflector smile_regular:

Il programma è stato realizzato in C# e dal sito è possibile scaricare un archivio contenente sia l'eseguibile sia i codici sorgenti.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) |

Powered by:
Powered By Subtext Powered By ASP.NET