32 lines
793 B
C#
32 lines
793 B
C#
using Pannenkoekenhuis.Factory;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Pannenkoekenhuis.Singleton
|
|
{
|
|
class FactoryFactory
|
|
{
|
|
private static PannenkoekenFactory kfactory { get; set; }
|
|
|
|
public static PannenkoekenFactory KaasInstance()
|
|
{
|
|
if (kfactory == null)
|
|
kfactory = new KaasPannenkoekFactory();
|
|
return kfactory;
|
|
}
|
|
|
|
|
|
private static PannenkoekenFactory sfactory { get; set; }
|
|
|
|
public static PannenkoekenFactory StroopInstance()
|
|
{
|
|
if (sfactory == null)
|
|
sfactory = new StroopPannenkoekFactory();
|
|
return sfactory;
|
|
}
|
|
}
|
|
}
|