c# da visual basic kodlarının kullanımı

using System;
using Microsoft.VisualBasic;

namespace Library
{
    public static class VisualBasic
    {
        public static dynamic UCase(dynamic v)
        {
            return Strings.UCase(v);
        }

        public static dynamic LCase(dynamic v)
        {
            return Strings.LCase(v);
        }
        public static dynamic Len(dynamic v)
        {
            return Strings.Len(v);
        }

        public static dynamic Left(dynamic str, int l)
        {
            return Strings.Left(str, l);
        }

        public static dynamic Right(dynamic str, int l)
        {
            return Strings.Right(str, l);
        }

        public static dynamic Split(dynamic e1, dynamic e2)
        {
            return Strings.Split(e1, e2);
        }

        public static dynamic Trim(dynamic v)
        {
            return Strings.Trim(v);
        }

        public static dynamic IIf(bool e, dynamic t, dynamic f)
        {
            return Interaction.IIf(e, t, f);
        }

        public static dynamic IsNumeric(dynamic v)
        {
            return Information.IsNumeric(v);
        }

        public static dynamic IsDate(dynamic v)
        {
            return Information.IsDate(v);
        }

        public static dynamic UBound(Array a)
        {
            return Information.UBound(a);
        }
        public static dynamic FormatNumber(dynamic v)
        {
            return Strings.FormatNumber(v);
        }

    }
}

Yorum yapın Yanıtı iptal et