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;
                }
            }
Ejemplo n.º 2
0
 protected override void Act()
 {
     parsedName = TypeNameParserHelper.ParseTypeName(typeToParse);
 }