public static ISMSModel CreateModel(SMSModelEntity model, ModifiableEntity?entity) { return((ISMSModel)SMSModelLogic.GetEntityConstructor(model.ToType()).Invoke(new[] { entity })); }
internal static bool HasDefaultTemplateConstructor(SMSModelEntity smsModelEntity) { SMSModelInfo info = registeredModels.GetOrThrow(smsModelEntity.ToType()); return(info.DefaultTemplateConstructor != null); }