IntOrStr クラス |
名前空間: WodiLib.Sys
[SerializableAttribute] public class IntOrStr : ModelBase<IntOrStr>, ISerializable
IntOrStr 型は下記のメンバーを公開します。
| 名前 | 説明 | |
|---|---|---|
| IntOrStr |
int, string どちらも持たないインスタンスを生成するコンストラクタ
| |
| IntOrStr(Int32) |
int値を持つインスタンスを生成するコンストラクタ
| |
| IntOrStr(String) |
string値を持つインスタンスを生成するコンストラクタ
| |
| IntOrStr(Int32, String) |
int, string どちらの値も持つインスタンスを生成するコンストラクタ
| |
| IntOrStr(SerializationInfo, StreamingContext) |
コンストラクタ
|
| 名前 | 説明 | |
|---|---|---|
| HasInt | 数値保有フラグ | |
| HasStr | 文字列保有フラグ | |
| InstanceIntOrStrType |
保有する値の種類
| |
| IsOneSideValue | 数値/文字列いずれかのみ保有フラグ |
| 名前 | 説明 | |
|---|---|---|
| Equals(Object) | Determines whether the specified object is equal to the current object. (ModelBaseTChildEquals(Object)をオーバーライド) | |
| Equals(IntOrStr) |
値を比較する。
(ModelBaseTChildEquals(TChild)をオーバーライド) | |
| Equals(ModelBaseTChild) |
値を比較する。
(ModelBaseTChildから継承) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Objectから継承) | |
| GetHashCode | Serves as the default hash function. (ModelBaseTChildGetHashCodeをオーバーライド) | |
| GetObjectData |
オブジェクトをシリアル化するために必要なデータを設定する。
| |
| GetType | Gets the Type of the current instance. (Objectから継承) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Objectから継承) | |
| Merge(Int32) | すでに文字列を保有している場合、両方所有状態にする 数値を保有している場合はその値を上書きする。 | |
| Merge(String) | すでに数値を保有している場合、両方所有状態にする 文字列を保有している場合はその値を上書きする。 | |
| Merge(IntOrStr) |
数値、文字列を引数で与えられたインスタンスの内容で上書きする。
| |
| NotifyPropertyChanged |
プロパティ変更イベント
(ModelBaseTChildから継承) | |
| ToInt |
intに変換する。
| |
| ToStr |
stringに変換する。
| |
| ToString | Returns a string that represents the current object. (ObjectToStringをオーバーライド) | |
| ToValueString |
内容を文字列化する。
|
| 名前 | 説明 | |
|---|---|---|
| PropertyChanged |
プロパティ変更通知
(ModelBaseTChildから継承) |
| 名前 | 説明 | |
|---|---|---|
| (Int32 to IntOrStr) |
int -> IntOrStr 暗黙型変換
| |
| (String to IntOrStr) |
string -> IntOrStr 暗黙型変換
| |
| (TupleInt32, String to IntOrStr) |
Tuple<int, string> -> IntOrStr 暗黙型変換
| |
| (ValueTupleInt32, String to IntOrStr) |
(int, string) -> IntOrStr 暗黙型変換
|