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 ProtectionConfig | |
{ | |
public string Path { get; set; } | |
public string ConfigurationPath { get; set; } | |
public string OutPutPath { get; set; } | |
public CancellationToken cancellationToken { get; set; } | |
} | |
var config = new ProtectionConfig | |
{ |
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 void ProtectApplication(string path, string configurationPath, string outPutPath, CancellationToken cancellationToken) | |
{ | |
// ... | |
} |
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 address = "One Infinite Loop, Cupertino 95014"; | |
var cityZipCodeRegex = new Regex(@"/ ^[^,\\] +[,\\\s] + (.+?)\s * (\d{ 5 })?$/").Matches(address); | |
var city = cityZipCodeRegex[0].Value; | |
var zipCode = cityZipCodeRegex[1].Value; | |
saveCityZipCode(city, zipCode); |
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
const address = "One Infinite Loop, Cupertino 95014"; | |
var cityZipCodeRegex = new Regex(@"/ ^[^,\\] +[,\\\s] + (.+?)\s * (\d{ 5 })?$/").Matches(address); | |
saveCityZipCode( | |
cityZipCodeRegex[0].Value, | |
cityZipCodeRegex[1].Value | |
); |
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
Bike MountainBike = new(){ | |
brand = "Trek", | |
model = "MX Mountain", | |
color = "Green" | |
}; | |
void paintBike(Bike mountainBike, string color){ | |
mountainBike.color = color; | |
} |
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
getUser(); |
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
getUserInfo(); | |
getClientData(); | |
getCustomerRecord(); |
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 currentDate = DateTime.Now.ToString("YYYY/MM/DD"); |
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 yyyymmdstr = DateTime.Now.ToString("YYYY/MM/DD"); |
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
Bike MountainBike = new(){ | |
bikeBrand = "Trek", | |
bikeModel = "MX Mountain", | |
bikeColor = "Green" | |
}; | |
void paintBike(Bike mountainBike, string color){ | |
mountainBike.bikeColor = color; | |
} |