コンテンツへスキップ
ものがたり
戻る

IsVirtual

そういえばしばらく前にうちのハッカーの面々と話していたのだけど、MethodBase.IsVirtualはなにげに素敵プロパティだ。

interface IFoo  

{  

    void Foo ();  

}

public class Test : IFoo
{
public void Foo () {}

public static void Main ()
{
System.Console.WriteLine (typeof (Test)
.GetMethod (“Foo”).IsVirtual);
}
}

詳しくはMSDNの説明を参照。


この記事を共有:

前の記事
2005-11-08
次の記事
Sony, Rootkits and Digital Rights Management Gone Too Far