Add project files.
This commit is contained in:
22
FactoryPattern/Samples/Sample2.cs
Normal file
22
FactoryPattern/Samples/Sample2.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FactoryPattern.Samples;
|
||||
|
||||
public interface ISample2
|
||||
{
|
||||
int RandomValue { get; set; }
|
||||
}
|
||||
|
||||
public class Sample2 : ISample2
|
||||
{
|
||||
public int RandomValue { get; set; }
|
||||
|
||||
public Sample2()
|
||||
{
|
||||
RandomValue = Random.Shared.Next(1, 101);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user