このクラスがあり、すべてのメソッドが適切に実装されているとしましょう(この場合、実装は質問とは無関係だと思います)。
static class ZedGraphHelper
{
public static ZedGraph.ZedGraphControl GetZedGraph(Guid config, Guid equip)
{ throw new NotImplementedException; }
//This method here is the faulty one
public static void AdjustGraphParam(ZedGraph.ZedGraphControl zGraph, RP.mgrRPconfigGraph mgr)
{ throw new NotImplementedException; }
public static void FillGraph(ZedGraph.ZedGraphControl zGraph, Guid config, Guid equip, Guid form)
{ throw new NotImplementedException; }
public static void FillGraph(ZedGraph.ZedGraphControl zGraph, Shadow.dsEssais.FMdocDataTable dtDoc, Shadow.dsEssais.FMchampFormDataTable dtChamp)
{ throw new NotImplementedException; }
public static void LoadDoc(Shadow.dsEssais.FMdocDataTable dtDoc, Guid equip, Guid form)
{ throw new NotImplementedException; }
public static double LoadDonnee(Guid champ, Guid doc)
{ throw new NotImplementedException; }
public static SqlDataReader ReadDonnee(Guid champ, Guid doc)
{ throw new NotImplementedException; }
}
このコードは正常にコンパイルされ、エラーは設定されません。クラス宣言を
static class ZedGraphHelper
に
public static class ZedGraphHelper
次のエラー メッセージが表示されました。Inconsistent accessibility: parameter type 'RP.mgrRPconfigGraph' is less accessible than method 'Shadow.ZedGraphHelper.AdjustGraphParam(ZedGraph.ZedGraphControl, RP.mgrRPconfigGraph)'
このメソッドは、ここに含めたクラス宣言に存在します。方法はpublic static void
.
このエラーが発生するのはなぜですか? また、コードの動作に一般の人が何か変更を加えていますか?