他の人が言ったことに追加するには、ベース。overrides または new キーワードのいずれかを使用して基本クラスから何かをオーバーライドした場合に使用されます。元のメソッドにアクセスするには base を使用する必要があります。
class a
{
public virtual void method1()
{
}
public string property1 { get; set; }
}
class b : a
{
// this has it's own instance in b, the only way to get to
// the original property1 is with base (or reflection)
public new string property1 { get; set; }
public override void method1()
{
// the only way to get to the original method1 and property1
base.method1();
base.property1 = "string";
}
}
あなたの例では、DataContext プロパティがこれらのキーワードのいずれかを使用している場合、 base と this はまったく同じことを意味しません。