Home All Groups Group Topic Archive Search About

I am trying to convert a C# file to VB.NET - need help

Author
28 Apr 2006 1:33 AM
Learner
Hello,
  Here is the code snippet I got strucked at.
I am unable to convert the below line of code to its equavalent vb.net
code. could some one please help me with this?

[DataObjectMethod(DataObjectMethodType.Select, true)]
        static public List<RoleData> GetRoles()
        {
            return GetRoles(null, false);
        }


Thanks
-L

Author
28 Apr 2006 4:06 AM
Tom Shelton
Learner wrote:
Show quoteHide quote
> Hello,
>   Here is the code snippet I got strucked at.
> I am unable to convert the below line of code to its equavalent vb.net
> code. could some one please help me with this?
>
> [DataObjectMethod(DataObjectMethodType.Select, true)]
>         static public List<RoleData> GetRoles()
>         {
>             return GetRoles(null, false);
>         }
>
>
> Thanks
> -L

<DataObjectMethod (DataObjectMethodType.Select, True)> _
Public Shared Function GetRoles () As List (Of RoleData)
    Return GetRoles (Nothing, False)
End Function

HTH
--
Tom Shelton [MVP]