Arokh Posted July 28, 2008 Posted July 28, 2008 I guess it is a longshot but i'll ask anyway: Somtimes the declaration Enums is deeply nested in a class Class Some Class VeryLong Class ClassNames Enum eBla Test End Enum Public Shared Sub TestSub(ByVal Bla As eBla) End Sub End Class End Class End Class And if one wanted to call TestSub it would result into a very long line: Some.VeryLong.ClassNames(Some.VeryLong.ClassNames.Test) Is there some way to shorten it to Some.VeryLong.ClassNames(Test)? (Without moving the enum to another location) Quote
cugone Posted July 29, 2008 Posted July 29, 2008 You can use Import Aliases. LongClass = Import Some.VeryLong.ClassNames EblaEnum = Import Some.VeryLong.ClassNames.eBla That way it's much shorter: Public Sub Blah LongClass.TestSub(EblaEnum) End Sub Other than that, I dunno. :/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.