convertとは? わかりやすく解説

convert

別表記:変える、コンバート

「convert」の基本的な意味

「convert」は主に「変える」といった意味を持つ英単語だが、日本語では「コンバート」という言葉で定着しており、ラグビー用語で「トライの後の得点」、スポーツ用語として「ポジションの変更」、IT用語として「データや信号を別の形式に置き換える」という意味でも用いられている。

「convert」の発音・読み方

「convert」の発音記号は、動詞が「kənvə́ːrt」、名詞が「kάnvəːrt」である。カタカナで発音を表現すると「カンヴァート」となる。動詞の場合は「ヴァ」に、名詞の場合は「カ」にアクセントがくる。

「convert」の語源

「convert」の語源は、ラテン語の「convertere(向きを変える)」が由来である。「con」はラテン語で「完全に」、「vertere」はラテン語で「向く」という意味である。そこから9世紀のフランスに伝播し、古フランス語の「convertir」に変化した。さらに「convertir」が中世のイギリスに伝わり、中英語の「convert」となり、今日の「convert」に至る。

「convert」を含む英熟語・英語表現

「convert a into b」とは

「convert a into b」とは、「convert」を他動詞として使い、「主語がa を bに変換させる・転換させる・変えさせる」という意味である。

「convert a to b」とは

「convert a to b」とは、「convert」を他動詞として使い、「主語がa を bに変換させる・変質させる・改宗させる」という意味である。

「convert into」とは

「convert into」とは、「convert」を自動詞として使い、「主語がinto以下のものに変換する・転換する・変わる」という意味である。

「convert to」とは

「convert to」とは、「convert」を自動詞として使い、「主語がinto以下のものに変換する・変質する・改宗する」という意味である。

「convert」を含む用語の解説

「convert関数」とは

「convert関数」とは、エクセルの機能の1つで、指定した数値の単位を別の単位に変換する。例えばヤードをメートルに、ポンドをキログラムに変更する時などに使用する。使用する構文は、「=CONVERT(変換したい数値,”変換前の単位”,”変換後の単位”)」となる。

「conversion(宗教)」とは

「conversion(宗教)」とは、「自分の宗教を変えること」・「他人に改宗をせまること」・「回心」という意味である。仏教用語の「回心」とは、「心を改めて、正しい仏道に進むこと」を意味する。キリスト教用語の「回心」とは、「自身の行為を悔い改めて、信じること」を意味する。

「convert」の使い方・例文

「convert」の例文は以下の通りである。

・I converted the money I had from dollars to yen.(私は所持しているお金をドルから円に変換した)
・Biomass power generation converts the heat generated when burning wood or combustible waste into renewable energy.(バイオマス発電は、木材や燃えるゴミなどを燃焼する際の熱を再生可能エネルギーに変える)
・The latest smart speakers can be converted into stereo speakers by arranging two.(最新式のスマートスピーカーは、2つ揃えることで、ステレオスピーカーに転換できる)
・The stock was listed on the Tokyo Stock Exchange Prime and the company was converted to a stock company.(株式を東証プライムに上場させて、会社を株式会社に転換した)
・Many missionaries at that time converted Japanese from Buddhism to Christianity.(当時多くの宣教師たちが、日本人を仏教からキリスト教に改宗させた)
・Through various circumstances, he is now a convert from Christianity to Islam.(彼は様々な事情を経て、今ではキリスト教からイスラム教への改宗者だ)
・Due to the number of catchers on the team, the manager converted him to an outfielder.(チームにキャッチャーが多数いたため、監督によって彼は外野手にコンバートされた)
・Could you please convert all the numbers from miles to kilometers using Excel's convert function?(エクセルのコンバート関数を使用して、すべての数値をマイルからキロメートルに変換してくれませんか?)
・I tried to convert a CD sound source to a high-resolution sound source using upsampling.(アップサンプリングを使用して、CDの音源をハイレゾ音源にコンバートすることにチャレンジしてみた)
・I repented of my past deeds and was converted.(今までの自分の行為を悔い改め、私は回心した)
・Tanaka converted Suzuki's try with a massive kick, and Japan defeated New Zealand in the rugby match.(田中が鈴木のトライの後でコンバートを決めたので、日本はラグビーの試合でニュージランドに勝った)

コンバート【convert】

読み方:こんばーと

[名](スル)

1 ラグビーで、トライ後ゴールをねらってキックしたボールが、ゴールポストの間で横木の上を越えてゴールに入ること。

2 野球で、選手の守備位置を転向させること。「外野から三塁に―された」

3 コンピューターで、あるアプリケーションソフトで作成したファイルを他のアプリケーションソフトで取り込めるよう変換すること。あるいは、ある文字コードを別の文字コードに変換すること。


コンバート


コンバート

【英】convert

コンバートとは、データやプログラムを他のデータ形式に変換することである。コンバートとは元々「入れ換える」「変換する」という意味の英語である。

コンバートは、文書ファイルにおける文字コードや改行コードをはじめ、画像、音楽、動画など、様々なデータを対象にして行われる。コンバートを行うためのソフトウェアはファイルコンバータと呼ばれることが多い。コンバートすることによって、元のファイル形式に対応していないアプリケーションでも、ファイルを扱うことができるようになる。

なお、「コンバータ」といえば広く「変換装置」を意味するが、とりわけ電子回路において直流と交流を変換する装置のことを指す場合が多い。


Convert クラス


Convert クラス

基本データ型を別の基本データ型に変換します。

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

解説解説

このクラスは、指定した型の値と等価な基本型を返します。サポートされている基本型は、Boolean、Char、SByte、Byte、Int16、Int32、Int64、UInt16、UInt32、UInt64、Single、Double、Decimal、DateTime、および String です。

変換メソッドは、各基本型をそれぞれ他の基本型に変換するために存在します。ただし、実行される実際の変換操作は、次の 3 つのカテゴリに分類されます。

数値型を変換したために有効桁数が減少した場合、つまり最下位のいくつかの桁が失われた場合、例外はスローされません。ただし、変換結果が、特定の変換メソッドの戻り値の型で表される最大桁数を超えている場合は、例外がスローされます。

たとえば Double を Single に変換すると、有効桁数が失われることがありますが、例外はスローされません。ただし、Double の絶対値が大きすぎて Single で表すことができない場合には、オーバーフロー例外がスローされます。

バイトの配列から String または Base 64 の数字で構成される Unicode 文字配列への変換と、この逆方向の変換をサポートする一連のメソッドがあります。Base 64 の数字で表現されるデータを送信する場合、7 ビット文字だけを送信できるデータ チャネルを使用すると、このデータを簡単に送信できます。

このクラスの一部のメソッドは、IFormatProvider インターフェイスを実装するパラメータ オブジェクトを受け入れます。このパラメータにより、変換処理を支援するカルチャに固有の書式情報が指定されます。基本値型ではこのパラメータが無視されますが、IConvertible を実装するユーザー定義型ではこのパラメータが受け入れられます。

基本値型の詳細については、「参照」セクションに示されている該当トピックを参照してください。

使用例使用例

ToInt32、ToBoolean、ToString など、Convert クラスの変換メソッドの一部を次のコード例に示します。

Dim dNumber As Double
dNumber = 23.15

Try
   ' Returns 23
   Dim iNumber As Integer
   iNumber = System.Convert.ToInt32(dNumber)
Catch exp As System.OverflowException
   System.Console.WriteLine("Overflow in double to int conversion.")
End Try

' Returns True
Dim bNumber As Boolean
bNumber = System.Convert.ToBoolean(dNumber)

' Returns "23.15"
Dim strNumber As String
strNumber = System.Convert.ToString(dNumber)

Try
   ' Returns '2'
   Dim chrNumber As Char
   chrNumber = System.Convert.ToChar(strNumber.Chars(1))
Catch exp As System.ArgumentNullException
   System.Console.WriteLine("String is null.")
Catch exp As System.FormatException
   System.Console.WriteLine("String length is greater than 1.")
End Try

' System.Console.ReadLine() returns a string and it
' must be converted.
Dim newInteger As Integer
newInteger = 0
Try
   System.Console.WriteLine("Enter an integer:")
   newInteger = System.Convert.ToInt32(System.Console.ReadLine())
Catch exp As System.ArgumentNullException
   System.Console.WriteLine("String is null.")
Catch exp As System.FormatException
   System.Console.WriteLine("String does not consist of an "
 + _
       "optional sign followed by a series of digits.")
Catch exp As System.OverflowException
   System.Console.WriteLine("Overflow in string to int conversion.")
End Try

System.Console.WriteLine("Your integer as a double is {0}",
 _
                         System.Convert.ToDouble(newInteger))
double dNumber = 23.15;

try {
    // Returns 23
    int    iNumber = System.Convert.ToInt32(dNumber);
}
catch (System.OverflowException) {
    System.Console.WriteLine(
                "Overflow in double to int
 conversion.");
}
// Returns True
bool   bNumber = System.Convert.ToBoolean(dNumber);

// Returns "23.15"
string strNumber = System.Convert.ToString(dNumber);

try {
    // Returns '2'
    char chrNumber = System.Convert.ToChar(strNumber[0]);
} 
catch (System.ArgumentNullException) {
    System.Console.WriteLine("String is null");
}
catch (System.FormatException) {
    System.Console.WriteLine("String length is greater than 1.");
}

// System.Console.ReadLine() returns a string and it
// must be converted.
int newInteger = 0;
try {
    System.Console.WriteLine("Enter an integer:");
    newInteger = System.Convert.ToInt32(
                        System.Console.ReadLine());
}
catch (System.ArgumentNullException) {
    System.Console.WriteLine("String is null.");
}
catch (System.FormatException) {
    System.Console.WriteLine("String does not consist of an " +
                    "optional sign followed by a series of digits.");
} 
catch (System.OverflowException) {
    System.Console.WriteLine(
    "Overflow in string to int
 conversion.");
}

System.Console.WriteLine("Your integer as a double is {0}",
                         System.Convert.ToDouble(newInteger));
Double dNumber = 23.15;

try
{
   // Returns 23
   Int32 iNumber = Convert::ToInt32( dNumber );
}
catch ( OverflowException^ ) 
{
   Console::WriteLine(
      "Overflow in Double to Int32 conversion" );
}
// Returns True
Boolean bNumber = Convert::ToBoolean( dNumber );

// Returns "23.15"
String^ strNumber = Convert::ToString( dNumber );

try
{
   // Returns '2'
   Char chrNumber = Convert::ToChar( strNumber->Substring( 0, 1 ) );
}
catch ( ArgumentNullException^ ) 
{
   Console::WriteLine(  "String is null" );
}
catch ( FormatException^ ) 
{
   Console::WriteLine(  "String length is greater than 1" );
}

// System::Console::ReadLine() returns a string and it
// must be converted.
Int32 newInteger = 0;
try
{
   Console::WriteLine(  "Enter an integer:" );
   newInteger = Convert::ToInt32( System::Console::ReadLine() );
}
catch ( ArgumentNullException^ ) 
{
   Console::WriteLine(  "String is null" );
}
catch ( FormatException^ ) 
{
   Console::WriteLine(  "String does not consist of an " +
      "optional sign followed by a series of digits" );
}
catch ( OverflowException^ ) 
{
   Console::WriteLine(  "Overflow in string
 to Int32 conversion" );
}

Console::WriteLine( "Your integer as a Double is {0}",
   Convert::ToDouble( newInteger ) );
double dNumber = 23.15;

try {        
    // Returns 23
    int iNumber = System.Convert.ToInt32(dNumber);
}
catch (System.OverflowException exp) {        
    System.Console.WriteLine("Overflow in double to int
 conversion.");
}

// Returns True
boolean bNumber = System.Convert.ToBoolean(dNumber);

// Returns "23.15"
String strNumber = System.Convert.ToString(dNumber);

try {        
    // Returns '2'
    char chrNumber = System.Convert.ToChar(strNumber.get_Chars(0));
}
catch (System.ArgumentNullException exp) {        
    System.Console.WriteLine("String is null");
}
catch (System.FormatException exp) {        
    System.Console.WriteLine("String length is greater than 1.");
}

// System.Console.ReadLine() returns a string and it
// must be converted.
int newInteger = 0;

try {        
    System.Console.WriteLine("Enter an integer:");
    newInteger = System.Convert.ToInt32(System.Console.ReadLine());
}
catch (System.ArgumentNullException exp) {        
    System.Console.WriteLine("String is null.");
}
catch (System.FormatException exp) {        
    System.Console.WriteLine(("String does not consist of an " 
        + "optional sign followed by a series of digits."));
}
catch (System.OverflowException exp) {        
    System.Console.WriteLine("Overflow in string
 to int conversion.");
}
System.Console.WriteLine("Your integer as a double is {0}", 
    System.Convert.ToString(System.Convert.ToDouble(newInteger)));

Convert クラスの変換メソッドの一部を次のコード例に示します。

' Sample for the Convert class summary.
Imports System

Class Sample
   Public Shared Sub Main()
      Dim nl As String =
 Environment.NewLine
      Dim str As String
 = "{0}Return the Int64 equivalent of the following base types:{0}"
      Dim xBool As Boolean
 = False
      Dim xShort As Short
 = 1
      Dim xInt As Integer
 = 2
      Dim xLong As Long
 = 3
      Dim xSingle As Single
 = 4F
      Dim xDouble As Double
 = 5.0
      Dim xDecimal As Decimal
 = 6D
      Dim xString As String
 = "7"
      Dim xChar As Char
 = "8"c ' '8' = hexadecimal 38 = decimal
 56
      Dim xByte As Byte
 = 9
      
      '  The following types are not CLS-compliant.
      ' Dim xUshort As System.UInt16 = 120
      ' Dim xUint As System.UInt32 = 121
      ' Dim xUlong As System.UInt64 = 122
      ' Dim xSbyte As System.SByte = 123
      
      '  The following type cannot be converted to an Int64.
      '  Dim xDateTime As System.DateTime = DateTime.Now

      Console.WriteLine(str, nl)
      Console.WriteLine("Boolean:  {0}", Convert.ToInt64(xBool))
      Console.WriteLine("Int16:    {0}", Convert.ToInt64(xShort))
      Console.WriteLine("Int32:    {0}", Convert.ToInt64(xInt))
      Console.WriteLine("Int64:    {0}", Convert.ToInt64(xLong))
      Console.WriteLine("Single:   {0}", Convert.ToInt64(xSingle))
      Console.WriteLine("Double:   {0}", Convert.ToInt64(xDouble))
      Console.WriteLine("Decimal:  {0}", Convert.ToInt64(xDecimal))
      Console.WriteLine("String:   {0}", Convert.ToInt64(xString))
      Console.WriteLine("Char:     {0}", Convert.ToInt64(xChar))
      Console.WriteLine("Byte:     {0}", Convert.ToInt64(xByte))
      Console.WriteLine("DateTime: There is no example of this
 conversion because")
      Console.WriteLine("          a DateTime cannot be converted
 to an Int64.")
      '
      Console.Write("{0}The following types are not supported:
 ", nl)
      Console.WriteLine("UInt16, UInt32, UInt64, and SByte")
   End Sub 'Main
End Class 'Sample
'
'This example produces the following results:
'
'Return the Int64 equivalent of the following base types:
'
'Boolean:  0
'Int16:    1
'Int32:    2
'Int64:    3
'Single:   4
'Double:   5
'Decimal:  6
'String:   7
'Char:     56
'Byte:     9
'DateTime: There is no example of this conversion because
'          a DateTime cannot be converted to an Int64.
'
'The following types are not supported: UInt16, UInt32, UInt64, and
 SByte
'
// Sample for the Convert class summary.
using System;

class Sample 
{
    public static void Main()
 
    {
    string nl = Environment.NewLine;
    string str = "{0}Return the Int64 equivalent of the following
 base types:{0}";
    bool    xBool = false;
    short   xShort = 1;
    int     xInt   = 2;
    long    xLong  = 3;
    float   xSingle = 4.0f;
    double  xDouble = 5.0;
    decimal xDecimal = 6.0m;
    string  xString = "7";
    char    xChar   = '8'; // '8' = hexadecimal 38
 = decimal 56
    byte    xByte  =  9;

//  The following types are not CLS-compliant.
    ushort  xUshort = 120;   
    uint    xUint =   121;
    ulong   xUlong =  122;
    sbyte   xSbyte  = 123;

//  The following type cannot be converted to an Int64.
//  DateTime xDateTime = DateTime.Now;

    Console.WriteLine(str, nl);
    Console.WriteLine("Boolean:  {0}", Convert.ToInt64(xBool));
    Console.WriteLine("Int16:    {0}", Convert.ToInt64(xShort));
    Console.WriteLine("Int32:    {0}", Convert.ToInt64(xInt));
    Console.WriteLine("Int64:    {0}", Convert.ToInt64(xLong));
    Console.WriteLine("Single:   {0}", Convert.ToInt64(xSingle));
    Console.WriteLine("Double:   {0}", Convert.ToInt64(xDouble));
    Console.WriteLine("Decimal:  {0}", Convert.ToInt64(xDecimal));
    Console.WriteLine("String:   {0}", Convert.ToInt64(xString));
    Console.WriteLine("Char:     {0}", Convert.ToInt64(xChar));
    Console.WriteLine("Byte:     {0}", Convert.ToInt64(xByte));
    Console.WriteLine("DateTime: There is no example of this
 conversion because");
    Console.WriteLine("          a DateTime cannot be converted to an Int64.");
//
    Console.WriteLine("{0}The following types are not CLS-compliant.{0}",
 nl);
    Console.WriteLine("UInt16:   {0}", Convert.ToInt64(xUshort));
    Console.WriteLine("UInt32:   {0}", Convert.ToInt64(xUint));
    Console.WriteLine("UInt64:   {0}", Convert.ToInt64(xUlong));
    Console.WriteLine("SByte:    {0}", Convert.ToInt64(xSbyte));
    }
}
/*
This example produces the following results:

Return the Int64 equivalent of the following base types:

Boolean:  0
Int16:    1
Int32:    2
Int64:    3
Single:   4
Double:   5
Decimal:  6
String:   7
Char:     56
Byte:     9
DateTime: There is no example of this conversion because
          a DateTime cannot be converted to an Int64.

The following types are not CLS-compliant.

UInt16:   120
UInt32:   121
UInt64:   122
SByte:    123
*/
// Sample for the Convert class summary.
using namespace System;
int main()
{
   String^ nl = Environment::NewLine;
   String^ str = " {0}Return the Int64 equivalent of the following base
 types: {0}";
   bool xBool = false;
   short xShort = 1;
   int xInt = 2;
   long xLong = 3;
   float xSingle = 4.0f;
   double xDouble = 5.0;
   Decimal xDecimal = Decimal(6.0);
   String^ xString = "7";
   char xChar = '8'; // '8' = hexadecimal 38 = decimal
 56

   Byte xByte = 9;
   
   //  The following types are not CLS-compliant.
   UInt16 xUshort = 120;
   UInt32 xUint = 121;
   UInt64 xUlong = 122;
   SByte xSbyte = 123;
   
   //  The following type cannot be converted to an Int64.
   //  DateTime xDateTime = DateTime::Now;
   Console::WriteLine( str, nl );
   Console::WriteLine( "Boolean: {0}", Convert::ToInt64( xBool ) );
   Console::WriteLine( "Int16: {0}", Convert::ToInt64( xShort ) );
   Console::WriteLine( "Int32: {0}", Convert::ToInt64( xInt ) );
   Console::WriteLine( "Int64: {0}", Convert::ToInt64( xLong ) );
   Console::WriteLine( "Single: {0}", Convert::ToInt64( xSingle ) );
   Console::WriteLine( "Double: {0}", Convert::ToInt64( xDouble ) );
   Console::WriteLine( "Decimal: {0}", Convert::ToInt64( xDecimal ) );
   Console::WriteLine( "String: {0}", Convert::ToInt64( xString ) );
   Console::WriteLine( "Char: {0}", Convert::ToInt64( xChar ) );
   Console::WriteLine( "Byte: {0}", Convert::ToInt64( xByte ) );
   Console::WriteLine( "DateTime: There is no example of this
 conversion because" );
   Console::WriteLine( "          a DateTime cannot be converted to an Int64."
 );
   
   //
   Console::WriteLine( " {0}The following types are not CLS-compliant. {0}",
 nl );
   Console::WriteLine( "UInt16: {0}", Convert::ToInt64( xUshort ) );
   Console::WriteLine( "UInt32: {0}", Convert::ToInt64( xUint ) );
   Console::WriteLine( "UInt64: {0}", Convert::ToInt64( xUlong ) );
   Console::WriteLine( "SByte: {0}", Convert::ToInt64( xSbyte ) );
}

/*
This example produces the following results:

Return the Int64 equivalent of the following base types:

Boolean:  0
Int16:    1
Int32:    2
Int64:    3
Single:   4
Double:   5
Decimal:  6
String:   7
Char:     56
Byte:     9
DateTime: There is no example of this conversion because
a DateTime cannot be converted to an Int64.

The following types are not CLS-compliant.

UInt16:   120
UInt32:   121
UInt64:   122
SByte:    123
*/
継承階層継承階層
System.Object
  System.Convert
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Convert コンストラクタ


Convert フィールド


パブリック フィールドパブリック フィールド

  名前 説明
パブリック フィールド DBNull データのないデータベース列、つまりデータベースが null であることを表す定数。
参照参照

関連項目

Convert クラス
System 名前空間
Object
SByte
Int16
Int32
Int64
Byte 構造体
UInt16
UInt32
UInt64
Single
Double
Decimal
Boolean 構造体
Char 構造体
String

Convert メソッド


Convert メソッド


パブリック メソッドパブリック メソッド

  名前 説明
パブリック メソッド ChangeType オーバーロードされます。 指定したオブジェクトと等価の値と指定した型を持つ Object を返します。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド FromBase64CharArray Unicode 文字配列のサブセットを変換します。これにより、バイナリ データは Base64 の数字として等価の 8 ビット符号なし整数配列にエンコードされます。パラメータは、入力配列のサブセットと変換する要素の数を指定します。
パブリック メソッド FromBase64String 指定した String を変換します。これにより、バイナリ データは Base64 の数字として等価の 8 ビット符号なし整数配列にエンコードされます。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド GetTypeCode 指定したオブジェクトの TypeCode を返します。
パブリック メソッド IsDBNull 指定したオブジェクトの型が DBNull かどうかを示す値を返します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToBase64CharArray オーバーロードされます。 8 ビット符号なし整数配列のサブセットを、Base64 の数字でエンコードされた Unicode 文字配列の等価のサブセットに変換します。
パブリック メソッド ToBase64String オーバーロードされます。 8 ビット符号なし整数配列の値を、Base64 の数字でエンコードされた等価の String 形式に変換します。
パブリック メソッド ToBoolean オーバーロードされます。 指定した値を等価のブール値に変換します。
パブリック メソッド ToByte オーバーロードされます。 指定した値を 8 ビット符号なし整数に変換します。
パブリック メソッド ToChar オーバーロードされます。 指定した値を Unicode 文字に変換します。
パブリック メソッド ToDateTime オーバーロードされます。 指定した値を DateTime に変換します。
パブリック メソッド ToDecimal オーバーロードされます。 指定した値を Decimal の数値に変換します。
パブリック メソッド ToDouble オーバーロードされます。 指定した値を倍精度浮動小数点数に変換します。
パブリック メソッド ToInt16 オーバーロードされます。 指定した値を 16 ビット符号付き整数に変換します。
パブリック メソッド ToInt32 オーバーロードされます。 指定した値を 32 ビット符号付き整数に変換します。
パブリック メソッド ToInt64 オーバーロードされます。 指定した値を 64 ビット符号付き整数に変換します。
パブリック メソッド ToSByte オーバーロードされます。 指定した値を 8 ビット符号付き整数に変換します。
パブリック メソッド ToSingle オーバーロードされます。 指定した値を単精度浮動小数点数に変換します。
パブリック メソッド ToString オーバーロードされます。 指定した値を、それと等価な String 形式に変換します。
パブリック メソッド ToUInt16 オーバーロードされます。 指定した値を 16 ビット符号なし整数に変換します。
パブリック メソッド ToUInt32 オーバーロードされます。 指定した値を 32 ビット符号なし整数に変換します。
パブリック メソッド ToUInt64 オーバーロードされます。 指定した値を 64 ビット符号なし整数に変換します。
参照参照

関連項目

Convert クラス
System 名前空間
Object
SByte
Int16
Int32
Int64
Byte 構造体
UInt16
UInt32
UInt64
Single
Double
Decimal
Boolean 構造体
Char 構造体
String

Convert メンバ

Convert データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド Convert  
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

Convert メンバ

基本データ型を別の基本データ型に変換します。

Convert データ型で公開されるメンバを以下の表に示します。


パブリック フィールドパブリック フィールド
  名前 説明
パブリック フィールド DBNull データのないデータベース列、つまりデータベースが null であることを表す定数。
パブリック メソッドパブリック メソッド
  名前 説明
パブリック メソッド ChangeType オーバーロードされます。 指定したオブジェクトと等価の値と指定した型を持つ Object を返します。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド FromBase64CharArray Unicode 文字配列のサブセットを変換します。これにより、バイナリ データは Base64 の数字として等価の 8 ビット符号なし整数配列にエンコードされます。パラメータは、入力配列のサブセットと変換する要素の数を指定します。
パブリック メソッド FromBase64String 指定した String を変換します。これにより、バイナリ データは Base64 の数字として等価の 8 ビット符号なし整数配列にエンコードされます。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド GetTypeCode 指定したオブジェクトの TypeCode を返します。
パブリック メソッド IsDBNull 指定したオブジェクトの型が DBNull かどうかを示す値を返します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToBase64CharArray オーバーロードされます。 8 ビット符号なし整数配列のサブセットを、Base64 の数字でエンコードされた Unicode 文字配列の等価のサブセットに変換します。
パブリック メソッド ToBase64String オーバーロードされます。 8 ビット符号なし整数配列の値を、Base64 の数字でエンコードされた等価の String 形式に変換します。
パブリック メソッド ToBoolean オーバーロードされます。 指定した値を等価のブール値に変換します。
パブリック メソッド ToByte オーバーロードされます。 指定した値を 8 ビット符号なし整数に変換します。
パブリック メソッド ToChar オーバーロードされます。 指定した値を Unicode 文字に変換します。
パブリック メソッド ToDateTime オーバーロードされます。 指定した値を DateTime に変換します。
パブリック メソッド ToDecimal オーバーロードされます。 指定した値を Decimal の数値に変換します。
パブリック メソッド ToDouble オーバーロードされます。 指定した値を倍精度浮動小数点数に変換します。
パブリック メソッド ToInt16 オーバーロードされます。 指定した値を 16 ビット符号付き整数に変換します。
パブリック メソッド ToInt32 オーバーロードされます。 指定した値を 32 ビット符号付き整数に変換します。
パブリック メソッド ToInt64 オーバーロードされます。 指定した値を 64 ビット符号付き整数に変換します。
パブリック メソッド ToSByte オーバーロードされます。 指定した値を 8 ビット符号付き整数に変換します。
パブリック メソッド ToSingle オーバーロードされます。 指定した値を単精度浮動小数点数に変換します。
パブリック メソッド ToString オーバーロードされます。 指定した値を、それと等価な String 形式に変換します。
パブリック メソッド ToUInt16 オーバーロードされます。 指定した値を 16 ビット符号なし整数に変換します。
パブリック メソッド ToUInt32 オーバーロードされます。 指定した値を 32 ビット符号なし整数に変換します。
パブリック メソッド ToUInt64 オーバーロードされます。 指定した値を 64 ビット符号なし整数に変換します。
参照参照

関連項目

Convert クラス
System 名前空間
Object
SByte
Int16
Int32
Int64
Byte 構造体
UInt16
UInt32
UInt64
Single
Double
Decimal
Boolean 構造体
Char 構造体
String


英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「convert」の関連用語

convertのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



convertのページの著作権

   
実用日本語表現辞典実用日本語表現辞典
Copyright © 2026実用日本語表現辞典 All Rights Reserved.
デジタル大辞泉デジタル大辞泉
(C)Shogakukan Inc.
株式会社 小学館
オムロン株式会社オムロン株式会社
© Copyright OMRON Corporation 1996-2026. All Rights Reserved.
IT用語辞典バイナリIT用語辞典バイナリ
Copyright © 2005-2026 Weblio 辞書 IT用語辞典バイナリさくいん。 この記事は、IT用語辞典バイナリの【コンバート】の記事を利用しております。
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS