This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Uri EnsureTrailingSlash(Uri uri) | |
{ | |
if (uri == null) | |
return null; | |
return new Uri(uri.ToString() + "/"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IReadOnlyCollection<string> FirstPopulatedList(List<string> list1, List<string> list2) | |
{ | |
if (HasElements(list1)) | |
return list1; | |
if (HasElements(list2)) | |
return list2; | |
return new List<string>(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IReadOnlyCollection<string> FirstPopulatedList(List<string> list1, List<string> list2) | |
{ | |
if (HasElements(list1)) | |
return list1; | |
if (HasElements(list2)) | |
return list2; | |
return null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PullRequestRequest | |
{ | |
public PullRequestRequest(string body) | |
{ | |
Body = body; | |
} | |
public string Body { get; set; } | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string Body? { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PullRequestRequest | |
{ | |
public PullRequestRequest() | |
{ | |
} | |
public string Body { get; set; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuthSettings | |
{ | |
public AuthSettings(Uri apiBase, string token, string? username) | |
{ | |
Username = username; | |
//Handle other params | |
} | |
public string? Username { get; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuthSettings | |
{ | |
public AuthSettings(Uri apiBase, string token, string username = null) | |
{ | |
ApiBase = apiBase; | |
Token = token; | |
Username = username; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyViewSource : MBAutoCompleteViewSource | |
{ | |
private ICollection<string> _suggestions; | |
private string _cellIdentifier = "CellId"; | |
public override void NewSuggestions(ICollection<string> suggestions) | |
{ | |
_suggestions = suggestions; | |
} |