Rearranging attributes and properties for C#

This article describe how to reorder the attributes and properties that appear in C# code.

Original
${attribute1}
${property1}

${attribute2}
${property2}

Updated
${attribute1}
${attribute2}

${property1}
${property2}

Changes
Remove the following content from ${vp-suite}/resources/instantgenerator/csharp/attribute.vm

###################### Property Start ######################
#if ($attribute.getProperty())
#set($property = $attribute.getProperty())
#parse("$template-path/property.vm")
#end
###################### Property End ######################

Insert the following content to ${vp-suite}/resources/instantgenerator/csharp/class.vm, between Attribute End and Operation Start

###################### Property Start ######################
#if ($class.attributeCount()>0)
#foreach ($attribute in $class.attributeIterator())
#if ($attribute.getProperty())
#set($property = $attribute.getProperty())
#parse("$template-path/property.vm")
#end
#end

#end
###################### Property End ######################

Enjoy!

Peter
attribute.vm
class.vm