Thinktecture.Tools.Web.Services.CodeGeneration.CodeRefactoringAgent.RefactorProperties C# (CSharp) Method

RefactorProperties() private method

private RefactorProperties ( FilteredTypeMembers properties, string oldName, string newName ) : void
properties FilteredTypeMembers
oldName string
newName string
return void
        private void RefactorProperties(FilteredTypeMembers properties, string oldName, string newName)
        {
            foreach (CodeTypeMemberExtension memberExtension in properties)
            {
                CodeMemberProperty property = (CodeMemberProperty)memberExtension.ExtendedObject;
                // Update the property type.
                RefactorCodeTypeReference(property.Type, oldName, newName);
                // Update the type references in attributes.
                RefactorCodeTypeReferencesInAttributes(property.CustomAttributes, oldName, newName);
            }
        }