public ViewModelDirectiveValue(DothtmlDirectiveNode dothtmlDirectiveNode) : base(dothtmlDirectiveNode.Value ?? "") { DothtmlDirectiveNode = dothtmlDirectiveNode; if (Value.Contains(separator)) { var values = Value.Split(separator); TypeFullName = values[0]; AssamblyName = values[1].Trim(); } else { TypeFullName = Value; } TypeFullName = TypeFullName.Trim(); if (TypeFullName.Contains('.')) { var splited = TypeFullName.Split('.').ToList(); TypeName = splited.LastOrDefault()?.Trim(); splited.Remove(TypeName); Namespace = string.Join(".", splited).Trim(); } }