Description | Shortcut | Keyboard Reference |
---|---|---|
Extract Interface | ctrl + O G | ReSharper_ExtractInterface |
Extract Superclass | ctrl + O E | ReSharper_ExtractSuperclass |
Change Signature | ctrl + O S | ReSharper_ChangeSignature |
Convert Anonymous to Named Type refactoring | ctrl + O P | ReSharper_Anonymous2Declared |
Extract Method refactoring | ctrl + O I | [ReSharper_ExtractMethod](https://www.jetbrains.com/he |
This file contains 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
var $debugHelper = $debugHelper || {}; | |
$debugHelper = function () { | |
var href = "lib/debugger.css"; | |
var addCss = function () { | |
if (styleStyleIsLoaded(href) === true) { | |
return; | |
} | |
const head = document.head; | |
const link = document.createElement("link"); | |
link.type = "text/css"; |
This file contains 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
using System.Security.Cryptography; | |
public static class Helpers | |
{ | |
public static string RandomNumberString(int length) => | |
RandomNumberGenerator.GetString( | |
choices: new string('a'.To('z').Concat('0'.To('9')).ToArray()), | |
length: length | |
); | |
public static T[] RandomElements<T>(this T[] source, int count) => |
This file contains 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 BirthDay | |
{ | |
private const string Template = | |
""" | |
Hey, | |
{name}'s birthday is on {dob}, which is in {month}. | |
Let's plan a party! | |
This file contains 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 interface IBaseEntity | |
{ | |
int Id { get; set; } | |
} |
This file contains 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
internal static partial class Extensions | |
{ | |
public static string RemoveExtraSpaces(this string sender, bool trimEnd = true) | |
{ | |
var result = MultipleSpacesRegex().Replace(sender, " "); | |
return trimEnd ? result.TrimEnd() : result; | |
} | |
[GeneratedRegex("[ ]{2,}", RegexOptions.None)] | |
private static partial Regex MultipleSpacesRegex(); |
This file contains 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 ProcedureProperty | |
{ | |
public string Schema { get; set; } | |
public string Name { get; set; } | |
public string Information { get; set; } | |
public string PropertyValue { get; set; } | |
public override string ToString() => $"{Information} = {PropertyValue}"; | |
} |
This file contains 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 Deconstruction | |
{ | |
private static ItemContainer[] _responseKeys = | |
[ | |
new ItemContainer(1, "A", "Yes"), | |
new ItemContainer(2, "B", "No"), | |
new ItemContainer(3, "C", "Yes"), | |
new ItemContainer(4, "A", "No") | |
]; |
This file contains 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 Person | |
{ | |
public int Id { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public DateOnly BirthDate { get; set; } | |
} |
This file contains 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
List<IndexContainer<string>> details = Helpers.AbbreviatedMonthNames(); | |
var exist = Helpers.Contains("Jan"); | |
var proper1 = "JAN".ProperCased(); | |
var proper2 = "jAn".ProperCased(); | |
var proper3 = "jan".ProperCased(); | |
var index = Helpers.GetNumberFromShortMonth("jun"); |
NewerOlder