Skip to main content
Rollback to Revision 6
Source Link
dfhwze
  • 13.9k
  • 3
  • 38
  • 101
protected CastOperation castop = new CastOperation()
{
    {"Year", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Month", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Day", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Pi", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"EulersNumber", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"SecretValue", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"SecretMessage", (hascii_str) => HasciiParser.HexToString(hascii_str)},
    {"BigInt", (hascii_str) => Convert.ToInt64(hascii_str, 16)}
};
protected CastOperation castop = new CastOperation()
{
    {"Year", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Month", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Day", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Pi", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"EulersNumber", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"SecretValue", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"SecretMessage", (hascii_str) => HasciiParser.HexToString(hascii_str)},
    {"BigInt", (hascii_str) => Convert.ToInt64(hascii_str, 16)}
};
Included code excerpt in design section
Source Link
Minh Tran
  • 285
  • 1
  • 10
protected CastOperation castop = new CastOperation()
{
    {"Year", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Month", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Day", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Pi", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"EulersNumber", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"SecretValue", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"SecretMessage", (hascii_str) => HasciiParser.HexToString(hascii_str)},
    {"BigInt", (hascii_str) => Convert.ToInt64(hascii_str, 16)}
};
protected CastOperation castop = new CastOperation()
{
    {"Year", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Month", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Day", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"Pi", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"EulersNumber", (hascii_str) => HasciiParser.HexToFloat(hascii_str)},
    {"SecretValue", (hascii_str) => Convert.ToInt32(hascii_str, 16)},
    {"SecretMessage", (hascii_str) => HasciiParser.HexToString(hascii_str)},
    {"BigInt", (hascii_str) => Convert.ToInt64(hascii_str, 16)}
};
edited tags
Link
dfhwze
  • 13.9k
  • 3
  • 38
  • 101
edited title; fixed copy/paste indentation
Source Link
t3chb0t
  • 44.3k
  • 9
  • 84
  • 190
Loading
Reworded first paragraph of problem statement
Source Link
Minh Tran
  • 285
  • 1
  • 10
Loading
Tweeted twitter.com/StackCodeReview/status/1179999681331511296
added 165 characters in body
Source Link
Minh Tran
  • 285
  • 1
  • 10
Loading
Added additional details about code design.
Source Link
Minh Tran
  • 285
  • 1
  • 10
Loading
Source Link
Minh Tran
  • 285
  • 1
  • 10
Loading