RenameConstant() public method

Renames a constant from the context.
public RenameConstant ( String oldName, String newName ) : ParseContext
oldName String /// The old name of the constant. ///
newName String /// The new name for the constant. ///
return ParseContext
Example #1
0
 /// <summary>
 /// Renames an existing constant (custom or defined).
 /// </summary>
 /// <param name="context">The context of the constant.</param>
 /// <param name="oldName">The old name of the constant.</param>
 /// <param name="newName">The new name for the constant.</param>
 /// <returns>The given context.</returns>
 public static ParseContext RenameConstant(ParseContext context, string oldName, string newName)
 {
     context.RenameConstant(oldName, newName);
     return(context);
 }