in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

InheritsFrom constraint in VB

Last post 10/13/2007 2:22 PM by Mark Wallace. 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 10/5/2007 8:05 PM

    InheritsFrom constraint in VB

    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

     
     



     

    Filed under: , , ,
  • 10/13/2007 2:22 PM In reply to

    Re: InheritsFrom constraint in VB

    Issue reported. You can track the status here: http://www.devexpress.com/Support/Center/p/B20709.aspx 

     

    ~ Mark 

Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED