private static void InjectPropertyInRepository <T>(T instance) { if (propertyDependency != null) { foreach (KeyValuePair <string, object> prop in propertyDependency) { PropertyInjector.SetValue(instance, prop.Key, prop.Value); } } }
private void InjectProperty(string objectId, object instance) { if (IsObjectHasProperty(objectId)) { foreach (KeyValuePair <string, object> prop in GetPropertyDepedency(objectId)) { PropertyInjector.SetValue(instance, prop.Key, prop.Value); } } }
private static void InjectPropertyInConfig <T>(string objectId, T instance, ConfigurationHandler configurationHandler) { if (configurationHandler.IsObjectHasProperty(objectId)) { foreach (KeyValuePair <string, object> prop in configurationHandler .GetPropertyDepedency(objectId)) { PropertyInjector.SetValue(instance, prop.Key, prop.Value); } } }