Merge pull request #51919 from raulsntos/csharp-renames

Rename C# string extensions to follow GDScript
This commit is contained in:
Aaron Franke 2021-08-21 16:55:37 -05:00 committed by GitHub
commit ba96f31fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ namespace Godot
/// <summary> /// <summary>
/// If the string is a path to a file, return the path to the file without the extension. /// If the string is a path to a file, return the path to the file without the extension.
/// </summary> /// </summary>
public static string BaseName(this string instance) public static string GetBaseName(this string instance)
{ {
int index = instance.LastIndexOf('.'); int index = instance.LastIndexOf('.');
@ -339,7 +339,7 @@ namespace Godot
/// <summary> /// <summary>
/// If the string is a path to a file, return the extension. /// If the string is a path to a file, return the extension.
/// </summary> /// </summary>
public static string Extension(this string instance) public static string GetExtension(this string instance)
{ {
int pos = instance.FindLast("."); int pos = instance.FindLast(".");