Wrapper to encrypt and store a System.DateTime.
More...
Inherits CryptoCache< DateTime, DateTimeField >.
Public Member Functions | |
| CryptoDate (DateTime value=default) | |
| Initialize with the specified value. More... | |
| override string | ToString () |
| Return the date time text. More... | |
| CryptoCache(T value=default) override void | OnBeforeSerialize () |
| Initialize with the specified value. More... | |
| override void | OnAfterDeserialize () |
| OnAfterDeserialize, read the real value to the obfuscated cache. More... | |
Protected Member Functions | |
| override DateTime | ToValue (string text) |
| Convert the decrypted text to the real value. More... | |
| override string | ToText (DateTime value) |
| Convert the real value to the text to encrypt. More... | |
| override DateTimeField | ReadEditee () |
| Read the stored value to the editee value. More... | |
| override void | WriteEditee (DateTimeField editee) |
| Write the editee value to the stored value. More... | |
| override DateTime | ReadObfuscated () |
| Read the obfuscated cache value. More... | |
| override void | WriteObfuscated (DateTime value) |
| Write value to the obfuscated cache. More... | |
| abstract void | WriteObfuscated (T value) |
| Write value to the obfuscated cache. More... | |
| int | RandomValue (int min=int.MinValue, int max=int.MaxValue) |
| Get a random value in the specified range. More... | |
Properties | |
| override T | value [get, set] |
| The stored value. More... | |
Wrapper to encrypt and store a System.DateTime.
| CryptoDate | ( | DateTime | value = default | ) |
Initialize with the specified value.
| value | Value. |
| override string ToString | ( | ) |
Return the date time text.
string represents this.
|
protected |
Convert the decrypted text to the real value.
| text | Text. |
|
protected |
Convert the real value to the text to encrypt.
| value | Value. |
|
protected |
Read the stored value to the editee value.
|
protected |
Write the editee value to the stored value.
| editee | Editee. |
|
protectedvirtual |
|
protected |
Write value to the obfuscated cache.
| value | Value. |
|
inherited |
Initialize with the specified value.
| value | Value. |
OnBeforeSerialize, write the obfuscated cache to the real value.
|
inherited |
OnAfterDeserialize, read the real value to the obfuscated cache.
|
protectedpure virtualinherited |
Write value to the obfuscated cache.
| value | Value. |
|
protectedinherited |
Get a random value in the specified range.
| min | Min value. |
| max | Max value. |
|
getsetinherited |
The stored value.