W
William O''Connor
I have a piece of code which I'm upgrading from .Net 1.1 to .Net 3.5. I'm
getting the ubiquitous Access of shared member, etc. warning for a particular
section and I haven't been able to figure a way around the problem.
The code in question:
Private _LogFile As Logger
Public Property LogFile() As String
Get
Return _LogFile.LogFile
End Get
Set(ByVal Value As String)
_LogFile.LogFile = Value
End Set
End Property
Logger is a class written in C Sharp. The code being accessed by the above
property is:
public static string LogFile
{
get
{
return appender.File;
}
set
{
appender.File = value;
appender.ActivateOptions();
}
}
The Logger class is contained in a separate DLL which is imported into the
appropriate namespace. All the references seem to be correct, except that
it's violating a rule within .Net.
Any assistance will be greatly appreciated.
getting the ubiquitous Access of shared member, etc. warning for a particular
section and I haven't been able to figure a way around the problem.
The code in question:
Private _LogFile As Logger
Public Property LogFile() As String
Get
Return _LogFile.LogFile
End Get
Set(ByVal Value As String)
_LogFile.LogFile = Value
End Set
End Property
Logger is a class written in C Sharp. The code being accessed by the above
property is:
public static string LogFile
{
get
{
return appender.File;
}
set
{
appender.File = value;
appender.ActivateOptions();
}
}
The Logger class is contained in a separate DLL which is imported into the
appropriate namespace. All the references seem to be correct, except that
it's violating a rule within .Net.
Any assistance will be greatly appreciated.