C# Class Kecaknoah.Type.TypeExtensions

Kecaknoahの型システムに関するヘルパーメソッドを提供します。
Mostrar archivo Open project: kb10uy/Kecaknoah

Public Methods

Method Description
AsArray ( this obj ) : IList

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文KecaknoahObjectのリストに変換します。

AsKecaknoahBoolean ( this val ) : Kecaknoah.Type.KecaknoahBoolean

KecaknoahBooleanを生成します。

AsKecaknoahFloat ( this num ) : Kecaknoah.Type.KecaknoahFloat

KecaknoahFloatを生成します。

AsKecaknoahInteger ( this num ) : Kecaknoah.Type.KecaknoahInteger

KecaknoahIntegerを生成します。

AsKecaknoahInteropFunction ( this val ) : Kecaknoah.Type.KecaknoahInteropFunction

KecaknoahInteropFunctionを生成します。

AsKecaknoahString ( this val ) : Kecaknoah.Type.KecaknoahString

KecaknoahStringを生成します。

AsNil ( this obj ) : Kecaknoah.Type.KecaknoahNil

nil化します。

CallAsPredicate ( this obj, KecaknoahContext ctx, KecaknoahObject tr ) : bool

ラムダ式などでPredicate{T}相当のオブジェクトが渡されたものとしてCallします。

CanResume ( this obj ) : KecaknoahFunctionResult

再開可能です。

Exception ( this obj ) : KecaknoahFunctionResult

例外です。

ExpectDouble ( this arr, int length, bool allowMore ) : IList

このKecaknoahObjectのリストが指定した個数のDoubleに変換可能であるとみなし、 そのリストを返します。

ExpectInt32 ( this arr, int length, bool allowMore ) : IList

このKecaknoahObjectのリストが指定した個数のInt32に変換可能であるとみなし、 そのリストを返します。

ExpectInt64 ( this arr, int length, bool allowMore ) : IList

このKecaknoahObjectのリストが指定した個数のInt64に変換可能であるとみなし、 そのリストを返します。

ExpectSingle ( this arr, int length, bool allowMore ) : IList

このKecaknoahObjectのリストが指定した個数のSingleに変換可能であるとみなし、 そのリストを返します。

ExpectString ( this arr, int length, bool allowMore ) : IList

このKecaknoahObjectのリストが指定した個数のStringに変換可能であるとみなし、 そのリストを返します。

ExpectTypes ( this arr ) : IList

このKecaknoahObjectのリストが指定したTypeCodeの順に従うとみなし、 そのリストを返します。超過分は切り捨てられます。

ExpectTypes ( this arr, IList codes, bool allowMore ) : IList

このKecaknoahObjectのリストが指定したTypeCodeの順に従うとみなし、 そのリストを返します。

GenerateAllFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してallメソッド(all相当)を生成します。

GenerateAnyFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してanyメソッド(any相当)を生成します。

GenerateEachFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してeachメソッドを生成します。

GenerateFilterFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してfilterメソッド(Where相当)を生成します。

GenerateFirstFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してfirstメソッド(First相当)を生成します。

GenerateLastFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してlastメソッド(Last相当)を生成します。

GenerateMapFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してmapメソッド(Select相当)を生成します。

GenerateReduceFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してreduceメソッド(Aggregate相当)を生成します。

GenerateReverseFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してreverseメソッド(Reverse相当)を生成します。

GenerateSkipFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してskipメソッド(Skip相当)を生成します。

GenerateTakeFunction ( this list ) : KecaknoahInteropDelegate

列挙可能なリストに対してtakeメソッド(Skip相当)を生成します。

NoResume ( this obj ) : KecaknoahFunctionResult

再開不可能です。

ToBooleanArray ( this obj ) : IList

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文boolのリストに変換します。

ToDoubleArray ( this obj ) : IList

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文doubleのリストに変換します。

ToInt32Array ( this obj ) : IList

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いてintのリストに変換します。

ToInt64Array ( this obj ) : IList

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文longのリストに変換します。

ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray

このリストをKecaknoahArrayに変換します。

ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray

このリストをKecaknoahArrayに変換します。

ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray

このリストをKecaknoahArrayに変換します。

ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray

このリストをKecaknoahArrayに変換します。

ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray

このリストをKecaknoahArrayに変換します。

ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray

このリストをKecaknoahArrayに変換します。

ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList

このリストをKecaknoahListに変換します。

ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList

このリストをKecaknoahListに変換します。

ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList

このリストをKecaknoahListに変換します。

ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList

このリストをKecaknoahListに変換します。

ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList

このリストをKecaknoahListに変換します。

ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList

このリストをKecaknoahListに変換します。

ToStringArray ( this obj ) : IList

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いてstringのリストに変換します。

Method Details

AsArray() public static method

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文KecaknoahObjectのリストに変換します。
public static AsArray ( this obj ) : IList
obj this 対象
return IList

AsKecaknoahBoolean() public static method

KecaknoahBooleanを生成します。
public static AsKecaknoahBoolean ( this val ) : Kecaknoah.Type.KecaknoahBoolean
val this 対象の値
return Kecaknoah.Type.KecaknoahBoolean

AsKecaknoahFloat() public static method

KecaknoahFloatを生成します。
public static AsKecaknoahFloat ( this num ) : Kecaknoah.Type.KecaknoahFloat
num this 対象の倍精度浮動小数点数
return Kecaknoah.Type.KecaknoahFloat

AsKecaknoahInteger() public static method

KecaknoahIntegerを生成します。
public static AsKecaknoahInteger ( this num ) : Kecaknoah.Type.KecaknoahInteger
num this 対象の64bit整数
return Kecaknoah.Type.KecaknoahInteger

AsKecaknoahInteropFunction() public static method

KecaknoahInteropFunctionを生成します。
public static AsKecaknoahInteropFunction ( this val ) : Kecaknoah.Type.KecaknoahInteropFunction
val this 対象の
return Kecaknoah.Type.KecaknoahInteropFunction

AsKecaknoahString() public static method

KecaknoahStringを生成します。
public static AsKecaknoahString ( this val ) : Kecaknoah.Type.KecaknoahString
val this 対象の文字列
return Kecaknoah.Type.KecaknoahString

AsNil() public static method

nil化します。
public static AsNil ( this obj ) : Kecaknoah.Type.KecaknoahNil
obj this
return Kecaknoah.Type.KecaknoahNil

CallAsPredicate() public static method

ラムダ式などでPredicate{T}相当のオブジェクトが渡されたものとしてCallします。
public static CallAsPredicate ( this obj, KecaknoahContext ctx, KecaknoahObject tr ) : bool
obj this 対象
ctx KecaknoahContext 現在の
tr KecaknoahObject 渡すオブジェクト
return bool

CanResume() public static method

再開可能です。
public static CanResume ( this obj ) : KecaknoahFunctionResult
obj this
return KecaknoahFunctionResult

Exception() public static method

例外です。
public static Exception ( this obj ) : KecaknoahFunctionResult
obj this
return KecaknoahFunctionResult

ExpectDouble() public static method

このKecaknoahObjectのリストが指定した個数のDoubleに変換可能であるとみなし、 そのリストを返します。
public static ExpectDouble ( this arr, int length, bool allowMore ) : IList
arr this 対象
length int 長さ
allowMore bool /// 指定した長さを超えるリストであるときに全て変換する場合はtrueを指定します。 /// 超過分を切り捨てる場合はfalseを指定します。 ///
return IList

ExpectInt32() public static method

このKecaknoahObjectのリストが指定した個数のInt32に変換可能であるとみなし、 そのリストを返します。
public static ExpectInt32 ( this arr, int length, bool allowMore ) : IList
arr this 対象
length int 長さ
allowMore bool /// 指定した長さを超えるリストであるときに全て変換する場合はtrueを指定します。 /// 超過分を切り捨てる場合はfalseを指定します。 ///
return IList

ExpectInt64() public static method

このKecaknoahObjectのリストが指定した個数のInt64に変換可能であるとみなし、 そのリストを返します。
public static ExpectInt64 ( this arr, int length, bool allowMore ) : IList
arr this 対象
length int 長さ
allowMore bool /// 指定した長さを超えるリストであるときに全て変換する場合はtrueを指定します。 /// 超過分を切り捨てる場合はfalseを指定します。 ///
return IList

ExpectSingle() public static method

このKecaknoahObjectのリストが指定した個数のSingleに変換可能であるとみなし、 そのリストを返します。
public static ExpectSingle ( this arr, int length, bool allowMore ) : IList
arr this 対象
length int 長さ
allowMore bool /// 指定した長さを超えるリストであるときに全て変換する場合はtrueを指定します。 /// 超過分を切り捨てる場合はfalseを指定します。 ///
return IList

ExpectString() public static method

このKecaknoahObjectのリストが指定した個数のStringに変換可能であるとみなし、 そのリストを返します。
public static ExpectString ( this arr, int length, bool allowMore ) : IList
arr this 対象
length int 長さ
allowMore bool /// 指定した長さを超えるリストであるときに全て変換する場合はtrueを指定します。 /// 超過分を切り捨てる場合はfalseを指定します。 ///
return IList

ExpectTypes() public static method

このKecaknoahObjectのリストが指定したTypeCodeの順に従うとみなし、 そのリストを返します。超過分は切り捨てられます。
public static ExpectTypes ( this arr ) : IList
arr this 対象
return IList

ExpectTypes() public static method

このKecaknoahObjectのリストが指定したTypeCodeの順に従うとみなし、 そのリストを返します。
public static ExpectTypes ( this arr, IList codes, bool allowMore ) : IList
arr this 対象
codes IList /// 変換先ののリスト。 /// /// 利用できるのは /// 、 /// 、 /// 、 /// 、 /// 、 /// 、 /// です。 /// を指定した場合、該当するは /// 変換されずそのまま格納されます。 /// /// /// また、 /// 、 /// を指定した場合 /// 精度が失われる可能性があります。 /// ///
allowMore bool /// 指定した長さを超えるリストであるときに全て変換する場合はtrueを指定します。 /// 超過分を切り捨てる場合はfalseを指定します。 /// 超過分はと同じ挙動になります。 ///
return IList

GenerateAllFunction() public static method

列挙可能なリストに対してallメソッド(all相当)を生成します。
public static GenerateAllFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateAnyFunction() public static method

列挙可能なリストに対してanyメソッド(any相当)を生成します。
public static GenerateAnyFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateEachFunction() public static method

列挙可能なリストに対してeachメソッドを生成します。
public static GenerateEachFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateFilterFunction() public static method

列挙可能なリストに対してfilterメソッド(Where相当)を生成します。
public static GenerateFilterFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateFirstFunction() public static method

列挙可能なリストに対してfirstメソッド(First相当)を生成します。
public static GenerateFirstFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateLastFunction() public static method

列挙可能なリストに対してlastメソッド(Last相当)を生成します。
public static GenerateLastFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateMapFunction() public static method

列挙可能なリストに対してmapメソッド(Select相当)を生成します。
public static GenerateMapFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateReduceFunction() public static method

列挙可能なリストに対してreduceメソッド(Aggregate相当)を生成します。
public static GenerateReduceFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateReverseFunction() public static method

列挙可能なリストに対してreverseメソッド(Reverse相当)を生成します。
public static GenerateReverseFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateSkipFunction() public static method

列挙可能なリストに対してskipメソッド(Skip相当)を生成します。
public static GenerateSkipFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

GenerateTakeFunction() public static method

列挙可能なリストに対してtakeメソッド(Skip相当)を生成します。
public static GenerateTakeFunction ( this list ) : KecaknoahInteropDelegate
list this 対象のリスト
return KecaknoahInteropDelegate

NoResume() public static method

再開不可能です。
public static NoResume ( this obj ) : KecaknoahFunctionResult
obj this
return KecaknoahFunctionResult

ToBooleanArray() public static method

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文boolのリストに変換します。
public static ToBooleanArray ( this obj ) : IList
obj this 対象
return IList

ToDoubleArray() public static method

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文doubleのリストに変換します。
public static ToDoubleArray ( this obj ) : IList
obj this 対象
return IList

ToInt32Array() public static method

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いてintのリストに変換します。
public static ToInt32Array ( this obj ) : IList
obj this 対象
return IList

ToInt64Array() public static method

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いて文longのリストに変換します。
public static ToInt64Array ( this obj ) : IList
obj this 対象
return IList

ToKecaknoahArray() public static method

このリストをKecaknoahArrayに変換します。
public static ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray
ol this 対象
return Kecaknoah.Type.KecaknoahArray

ToKecaknoahArray() public static method

このリストをKecaknoahArrayに変換します。
public static ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray
ol this 対象
return Kecaknoah.Type.KecaknoahArray

ToKecaknoahArray() public static method

このリストをKecaknoahArrayに変換します。
public static ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray
ol this 対象
return Kecaknoah.Type.KecaknoahArray

ToKecaknoahArray() public static method

このリストをKecaknoahArrayに変換します。
public static ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray
ol this 対象
return Kecaknoah.Type.KecaknoahArray

ToKecaknoahArray() public static method

このリストをKecaknoahArrayに変換します。
public static ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray
ol this 対象
return Kecaknoah.Type.KecaknoahArray

ToKecaknoahArray() public static method

このリストをKecaknoahArrayに変換します。
public static ToKecaknoahArray ( this ol ) : Kecaknoah.Type.KecaknoahArray
ol this 対象
return Kecaknoah.Type.KecaknoahArray

ToKecaknoahList() public static method

このリストをKecaknoahListに変換します。
public static ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList
ol this 対象
return Kecaknoah.Standard.KecaknoahList

ToKecaknoahList() public static method

このリストをKecaknoahListに変換します。
public static ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList
ol this 対象
return Kecaknoah.Standard.KecaknoahList

ToKecaknoahList() public static method

このリストをKecaknoahListに変換します。
public static ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList
ol this 対象
return Kecaknoah.Standard.KecaknoahList

ToKecaknoahList() public static method

このリストをKecaknoahListに変換します。
public static ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList
ol this 対象
return Kecaknoah.Standard.KecaknoahList

ToKecaknoahList() public static method

このリストをKecaknoahListに変換します。
public static ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList
ol this 対象
return Kecaknoah.Standard.KecaknoahList

ToKecaknoahList() public static method

このリストをKecaknoahListに変換します。
public static ToKecaknoahList ( this ol ) : Kecaknoah.Standard.KecaknoahList
ol this 対象
return Kecaknoah.Standard.KecaknoahList

ToStringArray() public static method

このKecaknoahObjectが配列・リストなどの列挙オブジェクトであるとみなし、 lengthと[]を用いてstringのリストに変換します。
public static ToStringArray ( this obj ) : IList
obj this 対象
return IList