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
// BusyStateManager usings | |
using System.Collections.Generic; | |
using GalaSoft.MvvmLight; | |
using GalaSoft.MvvmLight.Messaging; | |
using Savaged.Info.Desktop.Messages; | |
// BusyMessage usings | |
using System; | |
using System.Runtime.CompilerServices; | |
using GalaSoft.MvvmLight.Messaging; |
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 Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace AssureDesktop.Data | |
{ | |
public class LocalCachedPropertiesService | |
: ILocalCachedPropertiesService | |
{ | |
private const string _fileLocation = "LocalCachedProperties.ini"; |
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
namespace OopFizzBuzz | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
const int lastNumber = 17; | |
var app = new Program(); |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Savaged.Sandpit | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using Newtonsoft.Json; | |
namespace savaged.Services.IO | |
{ | |
class PropertiesService : IPropertiesService | |
{ |
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
def getVerb(i): | |
value = "" | |
r = i % 3 | |
if r == 0: | |
value = "Fizz" | |
r = i % 5 | |
if r == 0: | |
value = value + "Buzz" | |
if 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
using System; | |
namespace Patterns.Switch.Lib | |
{ | |
public class GreetingService | |
{ | |
public string GetGreeting(string? name) | |
{ | |
var value = name switch | |
{ |
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; | |
using System.Diagnostics; | |
using System.Text; | |
namespace Savaged.ConsoleWrapping | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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 EmptyThingModel : BaseModel | |
{ | |
private static readonly ThingModel _default = new EmptyThingModel(); | |
static EmptyThingModel() { } | |
private EmptyThingModel() { } | |
public static ThingModel Default => _default; |
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 Autofac; | |
using savaged.cli.io; | |
using savaged.cli.modules; | |
namespace savaged.cli | |
{ | |
/// <Summary> | |
/// Usage in Program.cs | |
/// App.Current.MainModule.Run(); | |
/// </Summary> |
OlderNewer