Hi Rocky..
In the " UsingCsla4-05-WPF-SL-v0.4 " ebook, there is a static class TimeStampExtension on page no.68 as given below:
public static class TimeSampExtension
{
public static bool Matches(this byte[] stamp1,byte[] stamp2)
{
//other code
}
}
I dont understand:
how does this keyword work?
why is it used?
Hi,
Look up ExtensionMethods and syntax in MSDN. this keyword means that the Matches method is an extension method to byte[] type.
See: http://msdn.microsoft.com/en-us/library/vstudio/bb383977.aspx
Thanks Jonny..
Copyright (c) Marimer LLC