Hello ramhog,
Just check your code, everything works fine
u can use the following code to check it
public interface IMyInterface
{
void MethodOne();
void MethodTwo();
}
class Program
#if DEBUG
: IMyInterface
#endif
{
static void Main(string[] args)
{
}
#if DEBUG
#region IMyInterface Members
public void MethodOne()
{
throw new NotImplementedException();
}
public void MethodTwo()
{
throw new NotImplementedException();
}
#endregion
#endif
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
r> On Aug 30, 10:19 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
r> laceupsolutions.com> wrote:
r>r> Thanks for everyones help.
r>
r> This gives me an error:
r> class MyTestClass : IReleaseMethods #if DEBUG , IDebugMethods #endif
r> {...}
r> I have tried different variantions of this with the same problem,
r> such
r> as:
r> class MyTestClass : IReleaseMethods, #if DEBUG IDebugMethods #endif
r> class MyTestClass #if DEBUG : IReleaseMethods, IDebugMethods #endi