This commit is contained in:
17
PluginManager/Interfaces/AppExtension.cs
Normal file
17
PluginManager/Interfaces/AppExtension.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using PluginManager.Online.Helpers;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PluginManager.Interfaces
|
||||
{
|
||||
public interface AppExtension
|
||||
{
|
||||
public string Name { get; }
|
||||
public VersionString Version { get; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -121,17 +121,21 @@ namespace PluginManager.Others
|
||||
/// <returns>A string built based on the array</returns>
|
||||
public static string MergeStrings(this string[] s, int indexToStart)
|
||||
{
|
||||
string r = "";
|
||||
int len = s.Length;
|
||||
if (len <= indexToStart) return "";
|
||||
for (int i = indexToStart; i < len - 1; ++i)
|
||||
{
|
||||
r += s[i] + " ";
|
||||
}
|
||||
return string.Join(' ', s, indexToStart, s.Length - 1);
|
||||
|
||||
r += s[len - 1];
|
||||
/* string r = "";
|
||||
|
||||
return r;
|
||||
int len = s.Length;
|
||||
if (len <= indexToStart) return "";
|
||||
for (int i = indexToStart; i < len - 1; ++i)
|
||||
{
|
||||
r += s[i] + " ";
|
||||
}
|
||||
|
||||
r += s[len - 1];
|
||||
|
||||
return r;
|
||||
*/
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user