public ResourceItem(ResourceEditorViewModel resourceEditor, string name, object resourceValue) { this.resourceEditor = resourceEditor; this.Name = name; this.SortingCriteria = name; this.ResourceValue = resourceValue; this.resourceType = GetResourceTypeFromValue(resourceValue); }