18 lines
338 B
C#
18 lines
338 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FactoryPattern.Samples;
|
|
|
|
public interface ISample1
|
|
{
|
|
string CurrentDateTime { get; set; }
|
|
}
|
|
|
|
public class Sample1 : ISample1
|
|
{
|
|
public string CurrentDateTime { get; set; } = DateTime.Now.ToString();
|
|
}
|