private void EnsureExceptionType() { var exceptionTypes = GetCollectionOfType <NamedElementCollection <ExceptionTypeData> >(policyModel); exceptionType = exceptionTypes.DescendentConfigurationsOfType <ExceptionTypeData>() .Where(x => (string)x.Property("TypeName").Value == wizardData.ExceptionType) .FirstOrDefault(); if (exceptionType == null) { exceptionType = exceptionTypes.AddNewCollectionElement(typeof(ExceptionTypeData)); exceptionType.Property("Name").Value = TypeNameParserHelper.ParseTypeName(wizardData.ExceptionType); exceptionType.Property("TypeName").Value = wizardData.ExceptionType; } }
protected override void Act() { parsedName = TypeNameParserHelper.ParseTypeName(typeToParse); }