I can not seem to have InheritsFrom constraint trigger properly in Vb. Before reporting a bug I thought that I would see if anyone here spots a problem with my approach.
Vb Template: Name: zz Code: private Const FOOBAR as String = "This is foobar in VB"
C# Template: Name zz Code: private const string FOOBAR = "This is not foobar in C#";
for both I checked the InheritsFrom constraint, right clicked - parameters - added Name space qualified class name. ie. VBTemplates.BaseClass or CsharpTemplates.BaseClass
vb code:
Namespace VBTemplates
Public Class Class1
Inherits BaseClass
End Class
Public Class Class2
End Class
Public Class BaseClass
End Class
End Namespace
C# Code
namespace CSharpTemplates
{
public class Class1: BaseClass
{
private const string FOOBAR = "This is not foobar in C#"; //expands properly
}
public class Class2
{
}
public class BaseClass
{
}
}
Thanks,
Mark