public static new PropertyInfo[] InitializePropertyInfos() { Type thisType = typeof(Entity); PropertyInfo[] tempProperty = StereotypedObject.InitializePropertyInfos(); PropertyInfo[] newProperty = new PropertyInfo[tempProperty.Length + 4]; tempProperty.CopyTo(newProperty, 0); newProperty[newProperty.Length - 4] = thisType.GetProperty("Parent", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 3] = thisType.GetProperty("ParentId", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 2] = thisType.GetProperty("Index", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 1] = thisType.GetProperty("Rank", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); return(newProperty); }
public static new PropertyInfo[] InitializePropertyInfos() { Type thisType = typeof(Relation); PropertyInfo[] tempProperty = StereotypedObject.InitializePropertyInfos(); PropertyInfo[] newProperty = new PropertyInfo[tempProperty.Length + 5]; tempProperty.CopyTo(newProperty, 0); newProperty[newProperty.Length - 5] = thisType.GetProperty("Type", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 4] = thisType.GetProperty("A", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 3] = thisType.GetProperty("AId", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 2] = thisType.GetProperty("B", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); newProperty[newProperty.Length - 1] = thisType.GetProperty("BId", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); return(newProperty); }