Get Calling Class type in base clases static method.



Hi All,

How do you think i can get this to work..



Der1.GetCallingClassType() should return Der1




public class Base
{

Base()
{}

public static string GetCallingClassType()
{

//how do i set the value for str
return str
}

}


public Der1:base
{
Der1(){}

}

public Der2:base
{
Der2(){}

}

.



Relevant Pages

  • Impersonate registry user/pwd
    ... Textwise this works ... StrToByteArray(string str) ... public static string ByteArrayToStr ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Impersonate registry user/pwd
    ... Textwise this works ... StrToByteArray(string str) ... public static string ByteArrayToStr ... RegistryKey typeKey = Registry.LocalMachine.OpenSubKey("Software\\XXX ...
    (microsoft.public.dotnet.framework)
  • Re: byte[] to string conversion ...
    ... public static string ByteArrayToString(byte[] array) ... string str = null; ... ascii.GetChars(array, 0, array.Length, asciiChars, 0); ...
    (microsoft.public.dotnet.languages.csharp)