本文整理汇总了C#中Derived.BaseMethod方法的典型用法代码示例。如果您正苦于以下问题:C# Derived.BaseMethod方法的具体用法?C# Derived.BaseMethod怎么用?C# Derived.BaseMethod使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Derived
的用法示例。
在下文中一共展示了Derived.BaseMethod方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StoreStaticField
public void StoreStaticField(Derived d)
{
ms_d = d;
d.BaseMethod(10);
}
示例2: Static
public static void Static(Derived d)
{
d.BaseMethod(10);
}
示例3: StoreField
public void StoreField(Derived d)
{
m_d = d;
d.BaseMethod(10);
}
示例4: StoreLocal
public void StoreLocal(Derived d)
{
Base b = d; // we don't try to analyze how locals are used
b.BaseMethod(10);
d.BaseMethod(10);
}
示例5: CrossCalls
public void CrossCalls(Derived d)
{
d.BaseMethod(10);
d.DerivedMethod(20);
}
示例6: Call
public void Call(Derived d)
{
d.BaseMethod(10);
StoreField(d);
}
示例7: TwoCalls
public void TwoCalls(Derived d)
{
d.BaseMethod(10);
d.BaseMethod(20);
}
示例8: BCall
public void BCall(Derived d)
{
d.BaseMethod(10);
}