Shell "cmd /c robocopy " & Chr(34) & sSource & Chr(34) & " " & Chr(34) & sPath & Chr(34) & " /e /z /s /xd " & Chr(34) & sFile & Chr(34)
The type 'T' cannot be used as type parameter 'T' in the generic type or method 'Repository'. There is no boxing conversion or type parameter conversion from 'T' to '.IDbUpdatable'.
IDbUpdatable<T>
, тогда данной ошибки не будет.public interface IDbUpdatable<T> where T : IDbUpdatable<T>
{
Repository<T> GetRepository();
int Update();
int Delete();
}
char arr[26][SIZE];
fclose(fp)
после цикла while{...}. string fileName = System.IO.Path.Combine(Environment.CurrentDirectory, "output.txt");
Public Function GetDataFromString(target As Range, sDelimiter As String) As String
If InStr(target.Value2, sDelimiter) > 0 Then
Dim arr
arr = Split(target.Value2, sDelimiter)
GetDataFromString = arr(UBound(arr) - 1)
End If
End Function
static async Task Run()
{
Console.WriteLine("Hello from begining \"Run\" method");
int num = 1000000000;
long res = await new TaskFactory().StartNew(() => { return SumZeroToNum(num); });
Console.WriteLine($"Result: {res}");
}
Task t = Run();
Private Sub Workbook_Open()
AutoSaveAllWorkbooks
End Sub
Public Sub AutoSaveAllWorkbooks()
Dim wb As Workbook
For Each wb In Application.Workbooks
wb.Save
Set wb = Nothing
Next
Application.OnTime Now + TimeValue("00:00:30"), "AutoSaveAllWorkbooks"
End Sub