Skip to content

Commit

Permalink
Feat (#1) 24-1. 제네릭 실습 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mic050r committed Aug 13, 2024
1 parent 10f3fab commit bb1eb3f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ public Wanted(T value)
}
}

class Needed<T, U> // Generic
{
public T Value1;
public U Value2;
public Needed(T value1, U value2)
{
Value1 = value1;
Value2 = value2;
}
}

internal class Program
{
static void Main(string[] args)
Expand Down

0 comments on commit bb1eb3f

Please sign in to comment.