Компьютерный форум NoWa.cc

Компьютерный форум NoWa.cc (https://nowa.cc/index.php)
-   .NET (https://nowa.cc/forumdisplay.php?f=298)
-   -   помогите перегнать из c# в vb# (https://nowa.cc/showthread.php?t=303391)

elsen 12.10.2010 14:23

помогите перегнать из c# в vb#
 
Код:

namespace ComServer
{
    [GuidAttribute("7B38697A-E6A5-4b40-8BE6-95971CEAC4A6")]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    public interface Icsi
    {
      string Method(string message);
      string[] mForm();
    }
    [EventTrackingEnabledAttribute(true)]
    [Guid("4B52E4C8-FE58-413e-9E3D-463F410A2F7A")]
    [ClassInterface(ClassInterfaceType.None)]
    [assembly: ComponentAccessControl(false)]
    public class comServ : ServicedComponent, Icsi
    {
        #region wmForm Members
        public string[] mForm()
        {
            ComServer.wmForm CmForm = new ComServer.wmForm();
            CmForm.ShowDialog();
            return new string[]{CmForm.txtVertrag.Text.ToString(),
                              CmForm.datVebeginn.Text.ToString()
                                };

        }
        public string Method(string message)
        {

            return "1234556";
        }


        #endregion
    }
}

вот собственно текст, помогите перегнать в vb# плиз

eababenko 19.10.2010 07:14

Re: помогите перегнать из c# в vb#
 
Код:

namespace ComServer
{
    [GuidAttribute("7B38697A-E6A5-4b40-8BE6-95971CEAC4A6")]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    public interface Icsi
    {
      string Method(string message);
      string[] mForm();
    }
    [EventTrackingEnabledAttribute(true)]
    [Guid("4B52E4C8-FE58-413e-9E3D-463F410A2F7A")]
    [ClassInterface(ClassInterfaceType.None)]
    [assembly: ComponentAccessControl(false)]
    public class comServ : ServicedComponent, Icsi
    {
        #region wmForm Members
        public string[] mForm()
        {
            ComServer.wmForm CmForm = new ComServer.wmForm();
            CmForm.ShowDialog();
            return new string[]{CmForm.txtVertrag.Text.ToString(),
                              CmForm.datVebeginn.Text.ToString()
                                };

        }
        public string Method(string message)
        {

            return "1234556";
        }
        #endregion
    }
}

Ссылка на конвертер http://www.developerfusion.com/tools.../csharp-to-vb/


Текущее время: 10:28. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2026, vBulletin Solutions, Inc. Перевод: zCarot
Copyright ©2004 - 2026 NoWa.cc

Время генерации страницы 0.01815 секунды с 9 запросами