Stacklysm

InheritancePrototypeTest1

Sep 15th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication15
  8. {
  9.     public class Credenciais
  10.     {
  11.         class CredentialEncrypter
  12.         {
  13.             public static string EncryptSequence(int password, int hash)
  14.             {
  15.                 string result = "";
  16.                 int? length = password.ToString().Length > 0 ? password.ToString().Length : 0;
  17.  
  18.                 if(length == null)
  19.                 {
  20.                     return result;
  21.                 }
  22.                 else
  23.                 {
  24.                     throw new Exception("Invalid password or hash");
  25.                 }
  26.             }
  27.         }
  28.     }
  29.  
  30.     public class Funcionario
  31.     {
  32.  
  33.     }
  34.  
  35.     class Program
  36.     {
  37.         static void Main(string[] args)
  38.         {
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment