Files
2025-07-06 17:26:05 +02:00

23 lines
381 B
C#

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);
}
}