Sou inciante em C# e estou com dificuladade para resolver o erro apresentado no código abaixo:
[EditorBrowsable(EditorBrowsableState.Never), DebuggerHidden]
public ThreadSafeObjectProvider()
{
this.m_Context = new ContextValue();
}
internal T GetInstance
{
[DebuggerHidden]
get
{
T local2 = this.m_Context.Get_Value();
if (local2 == null)
{
local2 = Activator.CreateInstance<T>();
this.m_Context.set_Value(local2);
}
return local2;
}
}
}
}
}
Segue os erros de compilação:
Warning 1 ‘wozFunctions.My.MyProject.MyWebServices.GetType()’ hides inherited member ‘object.GetType()’. Use the new keyword if hiding was intended. C:\Documents and Settings\prjfch\Meus documentos\Reflector\Disassembler\C#\wozFunctions\wozFunctions\My\MyProject.cs 95 27 wozFunctions
Error 2 ‘Microsoft.VisualBasic.MyServices.Internal.ContextValue’ does not contain a definition for ‘Get_Value’ C:\Documents and Settings\prjfch\Meus documentos\Reflector\Disassembler\C#\wozFunctions\wozFunctions\My\MyProject.cs 123 47 wozFunctions
Error 3 ‘Microsoft.VisualBasic.MyServices.Internal.ContextValue.Value.set’: cannot explicitly call operator or accessor C:\Documents and Settings\prjfch\Meus documentos\Reflector\Disassembler\C#\wozFunctions\wozFunctions\My\MyProject.cs 127 40 wozFunctions