public static void OnProperties(this object obj, ModelProperties properties) { string[] propertyKeys = properties.GetPropertyKeys(); for (int i = 0; i < propertyKeys.Length; i++) { obj.HandleProperty(propertyKeys[i], properties.GetProperty(propertyKeys[i]).Value); } }
public void OnProperties(ModelProperties properties) { this.properties = properties; if (trace) { log.Trace(GetType().Name + ".OnProperties() - NotImplemented"); } string[] propertyKeys = properties.GetPropertyKeys(); for (int i = 0; i < propertyKeys.Length; i++) { HandleProperty(propertyKeys[i], properties.GetProperty(propertyKeys[i]).Value); } }
private void FindVariables(ModelProperties properties) { string[] propertyKeys = properties.GetPropertyKeys(); for (int i = 0; i < propertyKeys.Length; i++) { ModelProperty property = properties.GetProperty(propertyKeys[i]); AddVariable(property); } string[] keys = properties.GetModelKeys(); for (int i = 0; i < keys.Length; i++) { ModelProperties nestedProperties = properties.GetModel(keys[i]); FindVariables(nestedProperties); } }