Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-Type -TypeDefinition @'
- public class DbzCharacter {
- public int Id { get; set; }
- public string Name{ get; set; }
- public int SuperSaiyanLevel { get; set; }
- public string SpecialMove{ get; set; }
- public DbzCharacter(int id, string name, int superSaiyanLevel, string specialMove) {
- this.Id = id;
- this.Name = name;
- this.SuperSaiyanLevel = superSaiyanLevel;
- this.SpecialMove = specialMove;
- }
- }
- '@
- $Person2 = [DbzCharacter]::new(1, "Goku", 3, "Kamehameha")
- $Person3 = [DbzCharacter]::new(2, "Tony", 99, "Montana")
- $Person2
- $Person3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement