Ad

Mhhh yes economik

namespace Solution 
{
  using System;
  
  internal class BlockchainApplication 
  {
    public static void Main(string[] args) 
    {
      Block block1 = new Block("this is first!");
      Block block2 = new Block(block1.Hash);
      Block block3 = new Block(block2.Hash);
      Block block4 = new Block(block3.Hash);
      Block block5 = new Block(block4.Hash);
      
      Console.WriteLine("Mhhh yes blokchayne indeed");
      Console.WriteLine(block5.Hash);
    }
  }
  
  public class Block 
  {
    public string Hash {get; private set;}
    public string PreviousHash {get; set;}
    
    public Block(string previousHash) 
    {
      this.PreviousHash = previousHash;
      this.Hash = previousHash + "this is how it works right?";
    }  
  }
}
Mathematics
Algorithms
Logic
Numbers
Data Types

Hmmm yes useless wrapper functions

Code
Diff
  • using System;
    using System.Linq;
    
    public class Sum
    {
       public Int64 GetSum(params Int64[] nums) => nums.Sum();
    }
    • using System;
    • using System.Linq;
    • public class Sum
    • {
    • public Int64 GetSum(Int64 a, Int64 b) => a + b;
    • public Int64 GetSum(params Int64[] nums) => nums.Sum();
    • }