blob_id large_stringlengths 40 40 | language large_stringclasses 1
value | repo_name large_stringlengths 5 119 | path large_stringlengths 4 271 | score float64 2.52 4.84 | int_score int64 3 5 | text stringlengths 26 4.09M |
|---|---|---|---|---|---|---|
028378b5549d350f1ef7438b538043f131bb8797 | C# | kim4t/SEP | /C# 01/Exercise3/Program.cs | 3.359375 | 3 | using System;
namespace Exersize3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Input string: ");
string input = Console.ReadLine();
printReverseString(input);
}
static void printReverseString(string s)
{
... |
11a0e7674025f8fb7433fc4fda4a22303e74b322 | C# | woods2011/AlgorithmsKR1 | /AlgorithmsKR1.Delimost/RachThree.cs | 3.34375 | 3 | using System;
namespace AlgorithmsKR1.Delimost
{
public class RachThree : DivisibilityBase
{
public override void Compute(int maxIterCount)
{
int a, b, bb, q, qq;
int m, k;
a = SplitNumber(P, out b);
switch (b)
{
case... |
f703ae27ebadd2e5334a252ef8639464cd8ba41b | C# | Xianbiao-Jiang/LeetCode-CS | /LeetCode.Test/0201-0250/0226-InvertBinaryTree-Test.cs | 2.671875 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LeetCode.Test
{
[TestClass]
public class _0226_InvertBinaryTree_Test
{
[TestMethod]
public void InvertTreeTest()
{
var root = TestHelper.GenerateTree(new int?[] { 4, 2, 7, 1, 3, 6, 9 });
var solut... |
043923fc6fd2353dd8addd733a20858e9ea67af9 | C# | FlamboyantRaccoon/Plugins | /Script/Lib/Formula/Parser/FormulaInternalSymbols.cs | 2.578125 | 3 | // Copyright 2016 Bigpoint, Lyon
//
// Maintainer: Sylvain Minjard <s.minjard@bigpoint.net>
//
// Date: 2017/03/14
using UnityEngine;
using System.Collections.Generic;
namespace FormulaParser
{
public static class InternalSymbols
{
// Variables
public static readonly Dictionary<string, double> variables = new... |
f30396954a8a55e0a0e64fcc656a40b58e41caa0 | C# | ejb21/code-sample | /Unity Games/Space SHMUP Prototype/Assets/__Scripts/Weapon.cs | 2.65625 | 3 | using UnityEngine;
using System.Collections;
// This is an enum of the various possible weapon types
// It also includes a "shield" type to allow a shield power-up
// Items marked [NI] below are Not Implemented in this book
public enum WeaponType
{
none , // The default / no weapon
blaster , // A simple blaster... |
09293a7530de190e8208fbfc5eb1cade1d41111e | C# | johnnyoshika/design-patterns | /DesignPatterns/Mvp/ManufacturerListPresenter.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DesignPatterns.Mvp
{
public class ManufacturerListPresenter
{
public ManufacturerListPresenter(IManufacturerListView listView, IManufacturerReader manufacturerReader)
{
ListView = listVi... |
1e4d76b86c8586d90f3f0ea6f046a07ad5f9dc34 | C# | LimGoSky/TradingPlatform | /Trading.Common/Common/UnitConvert.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trading.Common.Common
{
public class UnitConvert
{
private DateTime ConvertStringToDateTime(string timeStamp)
{
DateTime dtStart = TimeZone.CurrentTimeZone.... |
854d125ecf76763ab420805779bd17220001e314 | C# | Teliesin/ChainOfResponsibilitiesDesignPatternExample | /Program.cs | 2.609375 | 3 | using IntersectonChainOfResponsibilities.Operators;
using System;
namespace IntersectonChainOfResponsibilities
{
class Program
{
static void Main(string[] args)
{
Intersection intersection = new Intersection();
intersection.IsPoliceOfficerPresent = true;
... |
9e6376015e97b6406f9aed005ff95cb3450d11aa | C# | Aeris94/VirtualLibrary | /VirtualLibrary/Library/ConsoleLibraryPresenter.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VirtualLibrary.Books;
namespace VirtualLibrary.Library
{
public class ConsoleLibraryPresenter : ILibraryPresenter
{
public void DisplayList(IEnumerable<Book> list)
... |
a950f2bdd5cd85a8d1bee4b048bb7500052e0042 | C# | VGeorgiev1/Prog-Fundamentals-su | /DictionariesExe/LegendaryFarming/Program.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LegendaryFarming
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, int> keyMaterials = new Dictionary<string, int>();
Sorte... |
b2a9fe577d36e6766fec278ba25e4f1fa218fdd4 | C# | jjzhang166/C_Sharp | /Spocteni_radu_cifry/Program.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spocteni_radu_cifry
{
class Program
{
static void Main(string[] args)
{
Console.Write("Zadej hodnotu: ");
string vstup = Console.ReadLine();
... |
cb309044432b2ffc4770ad167d4c1f721f11a44f | C# | IskraNikolova/Programming-Basics | /Programming-Basic/ConditionalStatements/Problem3-CheckForAPlayCard/CheckForAPlayCard.cs | 4.21875 | 4 | using System;
using System.Linq;
public class CheckForAPlayCard
{
/// <summary>
/// Classical play cards use the following signs to designate the card
/// face: 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A. Write a program that enters a string
/// and prints “yes” if it is a valid card sign or “no” oth... |
ef72d45706b5f2265606c1b5edba209145abae2a | C# | ByAlexCod/MATe | /MATeV2/ContextManager.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MATeV2
{
public class ContextAndUserManager
{
readonly object _lock;
read... |
fed5ed4c99fa11582dd1a73c8598bed1ce8e7f05 | C# | WhatNick69/VotanScripts | /ShopSystem/UserResources.cs | 2.578125 | 3 | using CraftSystem;
using UnityEngine;
using VotanLibraries;
namespace ShopSystem
{
/// <summary>
/// Деньги и гемы пользователя, а также
/// дерево и железо (если потребуется)
/// </summary>
public class UserResources
: MonoBehaviour
{
#region Переменные
private Player... |
ba061a3726ac7cc3fd6d6251ee0b3d97601e66f2 | C# | AlexSydorenko/progbase2 | /lab3/Program.cs | 3.046875 | 3 | using System;
using System.IO;
namespace lab3
{
class Program
{
static void Main(string[] args)
{
// ConsoleLogger: dotnet run console
// ChunkPlainFileLogger: dotnet run file {directory} {maxNumOfLines}
ILogger logger = null;
... |
5eb1ecbfb5fc411225412184d89d2fb6f860ba94 | C# | SapphireGirl/JA | /JA.Logging/Models/LoggerBase.cs | 2.765625 | 3 | using System;
using log4net;
using WebGrease;
namespace JA.Logging.Models
{
// In Staging/Development: Set Log Level Minimum to DEBUG
// In Production: Set Log Level Minimum to WARN
// ALL DEBUG INFO WARN ERROR FATAL OFF
//All
//DEBUG DEBUG
... |
d37342203021c34c432fcc455ee7ce3d37625e89 | C# | MarckRDA/Testes-Unitarios-First-Exercise-Csharp-Entra21 | /Test.Exercise6/Domain/Election.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Domain
{
public class Election
{
private List<Candidate> candidates;
public IReadOnlyCollection<Candidate> Candidates => candidates;
public bool CreateCandidates(List<Candidate> candidatesForElection... |
4b2064e816f0a057259384fd877addfd5dd7f423 | C# | mounicadammalapati/MultiThreading | /DatabaseMultiThreadedApplication/Parallelism.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using DatabaseMultiThreadedApplication.database;
using System.Threading.Tasks;
using System.Linq;
namespace DatabaseMultiThreadedApplication
{
public class Parallelism
{
public Parallelism()
{
}
public void I... |
c221a1515f5f4537a16b2d35734fb84ce54234fa | C# | conwid/CosmosDbContext | /CosmosDbContext.cs | 2.546875 | 3 | using CosmosDbContext.Collection;
using CosmosDbContext.Extensions;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Thr... |
5c78698e750f4fdac4e5d9c99d8e2452c7ade143 | C# | tiagonapoli/learning-polly-dotnet | /WeatherForecast.cs | 3.265625 | 3 | using System;
using System.Threading;
using System.Threading.Tasks;
namespace learning_polly_dotnet
{
public class WeatherForecast
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", ... |
50ad4a181de469128f4979bfdf70e98c27f83c0e | C# | Illedan/SharpNN | /SharpNetwork/TicTacToe/Game/TicTacToe.cs | 3.546875 | 4 | using System;
using System.Linq;
namespace TicTacToe.Game
{
public class TicTacToe : IGame
{
private static readonly int[,] possibleWins =
{
{0, 1, 2},
{3, 4, 5},
{6, 7, 8},
{0, 3, 6},
{1, 4, 7},
{2, 5, 8},
{0,... |
de236d82dd4d01aac6c185eb3241115ddeaf9ac3 | C# | tomSagala/TEAM-FRE | /Assets/Scripts/Utility/ResourceManager.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
public static class ResourceManager
{
private static Dictionary<string, Texture2D> _textures;
private static Dictionary<string, GameObject> _prefabs;
static ResourceManager()
{
_textures = new Dictionary<string, Texture2D>();
... |
889cef7f7eaa0230364ebd11ae731f6185e7d234 | C# | kadiraciktan/YoreselSozluk | /YoreselSozluk.DataAccess/Operations/EntryOperations/Commands/DeleteEntry/DeleteEntryCommand.cs | 2.640625 | 3 | using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YoreselSozluk.DataAccess.Abstract;
namespace YoreselSozluk.DataAccess.Operations.EntryOperations.Commands.DeleteEntry
{
public class DeleteEntryCommand
{
private ... |
fd28fc946e6c846808f80b7a8ba3d9a9bc5cfa62 | C# | firament/fsap-utils-1706 | /EntityMetadataClassGen/MDGenerator.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using NLog;
namespace fsap.EntityMetadataClassGen
{
public enum ReturnStatus // Value maps directly to return status
{
OK = 0,
FILE_EXISTS = 1,
SRC_ROOT_NO_ACCESS = 2,
DEST_... |
9a5d5291cc7bc763cb9d4ee3c0134de145f7086a | C# | Motivesoft/MotiveLogger | /MotiveLogger/DefaultLogger.cs | 3.328125 | 3 | namespace MotiveLogger
{
/// <summary>
/// Generic API for logging services
/// </summary>
public abstract class DefaultLogger : Logger
{
protected DefaultLogger(string name)
{
Name = name;
LogLevel = LogManager.DefaultLogLevel;
}
~DefaultLog... |
2cfaef40da702cae2aee5b81570bdd5c7d7d44d8 | C# | meian/relational-lock | /src/RelationalLock.Process/RelationalLockManager.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
namespace RelationalLock {
/// <summary>
/// Lock control instance by in process model.
/// </summary>
public class RelationalLockManager : IRelationalLockManager {
p... |
90d59100ea368de6ebdc307aca5eb04e909e5302 | C# | ILya-Lev/Codility.Solution | /Codility.Solvers/MinAvgTwoSlice.cs | 2.875 | 3 | using System;
namespace Codility.Solvers
{
public class MinAvgTwoSlice
{
public int MinAverageSlice(int[] input)
{
var total = (input[0]+input[1])/2.0;
var sliceStart = 0;
for (int i = 1; i < input.Length-1; i++)
{
for (int j = 2;... |
1a6b8b2ecee64b3dd8ad0256c52a46bc14eb51a0 | C# | AArnott/MessagePack-CSharp | /src/MessagePack.UnityClient/Assets/Scripts/Tests/ShareTests/DictionaryTest.cs | 2.6875 | 3 | // Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;... |
ea1ed408dfdcfd547323edc8df82deea8749385b | C# | itabas016/onepiece | /src/OnePiece.Framework.SubSonic.Extension/Extensions/DbContextExtension.cs | 2.65625 | 3 | using OnePiece.Framework.Core;
using SubSonic.Query;
using SubSonic.Schema;
using SubSonic.SqlGeneration.Schema;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace OnePiece.Framework.SubSonic
{
public static ... |
099c701e8e9fb472a49fadb262715d1b4b0ab775 | C# | sam210723/moRFctrl | /moRFctrl/Tools.cs | 2.984375 | 3 | using System;
using System.Linq;
namespace moRFctrl
{
/// <summary>
/// Common methods used in multiple classes
/// </summary>
static class Tools
{
/// <summary>
/// Output string to console
/// </summary>
public static void Log(string s)
{
Conso... |
37ed4f88276c8803db18271cc4c65862378c899f | C# | pollubnet/WalkaChomika2016 | /WalkaChomika2016/Models/Frog.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WalkaChomika.Models
{
class FrogSentry : Animal
{
public FrogSentry()
{
Name = "Żaba Strażnik";
HP = 10;
Damage = 2;
Man... |
0a02a6219ed9283fcbd5ab28ab73e36236cb2f41 | C# | baidarka/BizUnit | /Src/BizUnit.Core/TestBuilder/StepValidationException.cs | 2.921875 | 3 |
using System;
namespace BizUnit.Core.TestBuilder
{
/// <summary>
/// TestStepExecutionException is thrown by BizUnit to indicate a validation step failed.
/// </summary>
/// <remarks>The ValidationStepExecutionException is thrown by BizUnit when a validation step fails, the
/// framework automat... |
b3a7966accdaf09b05f04cf1a112a20f96607a09 | C# | shendongnian/download4 | /first_version_download2/409579-35791072-112386000-2.cs | 2.734375 | 3 | public enum MyEnum
{
Val1,
Val2,
}
public class TestDefine
{
public string MyEnumPropSerialize
{
get
{
if (MyEnumProp.HasValue)
{
return MyEnumProp.ToString();
}
return null;
}
set
{
MyEnum importValue;... |
db4b5a28e9d71daba0d6338a1a179dc9c9641404 | C# | Fullance/space-egineers-API | /SE-2/VRage.Math/VRageMath/MatrixI.cs | 2.734375 | 3 | namespace VRageMath
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
public struct MatrixI
{
public Base6Directions.Direction Right;
public Base6Directions.Direction Up;
public Base6Directions.Direction Backward;
public Vec... |
5c21ba55c066b4f2b3b8e1016d60b0a471ab5a52 | C# | LazyTarget/Lux | /src/Lux/IO/Helpers/PathSorter.cs | 3.125 | 3 | using System.Collections.Generic;
namespace Lux.IO
{
public class PathSorter : IComparer<string>
{
public int Compare(string x, string y)
{
var c = PathHelper.Compare(x, y);
if (c == 0)
return 0;
c = 0;
var xParts = PathHelper.Get... |
b813b54de28e3c63cf3a486676e6a3ab34862836 | C# | vinanti/Skills | /DSA/Coding/AQueue03_QueueUsage.cs | 3.78125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Coding
{
class AQueue03_QueueUsage
{
public static void Main01()
{
// 1. Initialize a queue.
Queue<int> q = new Queue<int>();
// 2. ... |
0b5a068a385817100e2e5b77de60898063b428d7 | C# | shendongnian/download4 | /code1/178120-3369806-7007843-2.cs | 2.859375 | 3 | public class MyClass
{
public int Value
{
get
{
Console.WriteLine("Value called");
return 3;
}
}
}
|
e107e766149789c16b456cc28a6e441c0751c8ff | C# | dotnet/dotnet-api-docs | /snippets/csharp/System.Threading.Tasks/Task/WhenAll/whenall2.cs | 3.171875 | 3 | // <Snippet2>
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
public class Example
{
public static void Main()
{
var tasks = new Task<long>[10];
for (int ctr = 1; ctr <= 10; ctr++) {
int delayInterval = 18 * ctr;
tasks[ctr - 1] = Task.Run(async () => {... |
ca07b4450f2ca6ba2ecc122e08c86fdb2e65488d | C# | arulface/Sameer | /DataMigration/DataMigration/SqlConnector.cs | 2.515625 | 3 | using DataMigration.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataMigration
{
public class SqlConnector : IConnection
... |
a06c098f2a2e55ff62ce6f75cd6c4f05b62594b2 | C# | tools81/PnPVisualator | /Controls/DisplayTypes/ActionDisplay.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace Pen_and_Paper_Visualator.Controls
{
public partial class ActionDisplay : UserControl
{
public static string ActionName { get; s... |
bd3440542daf7f7ea6a80e9a0962ec97bb8e903b | C# | chris-rogala/Tutorials.AzureFunctions | /src/Tutorials.AzureFunctions.DependencyInjection/Extensions/ConfigurationExtensions.cs | 2.671875 | 3 | using Microsoft.Extensions.Configuration;
using System;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
namespace Tutorials.AzureFunctions.DependencyInjection.Extensions
{
public static class ConfigurationExtensions
{
private const string _clientThumbprint = "clientThumbprint";... |
c83b4ac8606504fd402ea940ad24c7aebcbfe235 | C# | RendijsSmukulis/netBencodeReader | /netBencodeReader/netBencodeReader/InternalDeser/Deserializer.cs | 2.828125 | 3 | namespace netBencodeReader.InternalDeser
{
using System;
using System.Diagnostics;
using netBencodeReader.Types;
using netBencodeReader.Tokenizer;
public class Deserializer
{
public BEBaseObject GetBaseObject(BencodeReader reader)
{
if (reader.ReadState == Read... |
ba0189cec4b431ef803b7217a4104450843697d0 | C# | Petermarcu/Projects | /Pi/Raspberry.System/Timers/Timer.cs | 3.25 | 3 | #region References
using System;
using System.Threading;
#endregion
namespace Raspberry.Timers
{
/// <summary>
/// Provides access to timing features.
/// </summary>
public static class Timer
{
#region Methods
/// <summary>
/// Creates a timer.
/// </summary>
... |
909a3f48fb27605b86fe0e9b1bbab945d687e98d | C# | ByteKnightUNF/ClassroomConnectionSystem | /CCS2.0/DataLibrary/BusinessLogic/PhotoProccesor.cs | 2.6875 | 3 | using DataLibrary.DataAccess;
using DataLibrary.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.IO;
namespace DataLibrary.BussinessLogic
{
public static class PhotoProccesor
{
public s... |
bcf74a5a1775bcac3f6c64f187a248b0be7e4c0b | C# | VelizarVeli/SoftUni-Software-Engineering | /02.C#Fundamentals/03.OOPAdvanced/05.Generics/08.CustomListSorter/CustomList.cs | 3.46875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class CustomList<T>
: ICustomList<T>, IEnumerable<T> where T
: IComparable<T>
{
private const int Initialcapacity = 16;
private T[] data;
private int length;
private IEnumera... |
fe96030d2f135206641c4fae258476852d9104dd | C# | Morebis-GIT/CI | /xggameplanAPI/src/domain/ImagineCommunications.GamePlan.Domain/AutoBookApi/InstanceConfiguration/Objects/AutoBookInstanceConfigurarionCriteria.cs | 3.0625 | 3 | using System;
namespace ImagineCommunications.GamePlan.Domain.AutoBookApi.InstanceConfiguration.Objects
{
/// <summary>
/// Single criteria for an AutoBook to be suitable to be able to execute run
///
/// The importance of the factors starting with most important is breaks, campaigns.
/// </summar... |
5640bba53adfda2986084dc77c1b2045dc142885 | C# | hiyorin/Gamebase-SceneManagement | /Runtime/ISceneController.cs | 2.515625 | 3 | using System;
using UniRx.Async;
namespace Gamebase.Scene
{
public interface ISceneController
{
/// <summary>
/// 初期化済みか
/// </summary>
bool Initialized { get; }
/// <summary>
/// 初期化
/// </summary>
/// <returns></returns>
UniTask Init... |
a4b2de0ac571c6c08255e0f3e4fa9faa83bb75e6 | C# | SometimesRain/IrcClientMinimal | /IrcClientMinimal/TcpClient.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace IrcClientMinimal
{
public delegate void IOCallback(byte[] data, int numBytes);
public class TcpClient
{
private byte[] recvBuffer;
private So... |
d5dab9ae794c8a2cfceba49229139d34ec4e838b | C# | illuillu/Statistics_Project | /Statistics_Server/Statistics_Server/DAO/DAO.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace Statistics_Server
{
class DAO
{
private static DAO instance = null;
public static DAO Get()
... |
053a77f06f1a8562ee75aafa66d3821211a1c980 | C# | PlumpMath/DesignPattern-1012 | /Singleton/Singleton/Singleton.cs | 3.6875 | 4 |
namespace Singleton
{
/// <summary>
/// 饿汉模式:类加载的时候创建类的实例
/// 饿汉模式的特点是加载类时比较慢,但运行时获取对象的速度比较快
/// 饿汉模式是线程安全的
/// </summary>
class Singleton
{
//1.将构造方法私有化,不允许外部直接创建对象
private Singleton() { }
//2.创建类的唯一实例,用private static修饰
private static Singleton instance =... |
18e4d62372b18e3b5bff39ee20aabfef9def9004 | C# | konradr33/Rabbit-fox-grass | /Assets/Scripts/NeuralNetworkStorage.cs | 3.234375 | 3 | using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Text;
namespace DefaultNamespace
{
public class NeuralNetworkStorage
{
public static void SaveToFile(string filePath, NeuralNetwork[] networks, float[] fitnesses)
{
var stringBuilder = new StringBuilder();
... |
b1caa39aa3444023f5a15e5aad21e27d38abe851 | C# | divya-harchandani/git4864 | /gitworks/FirstApplicationSolution/FlowControl/ForEachExample.cs | 3.734375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlowControl
{
class ForEachExample
{
static void Main()
{
string[] Gender = { "Male", "Female", "male", "female", "MALE" };
int male = 0;
... |
d62c1600e056b36d26553b684861abe27767019b | C# | MaxIvanov44/ComputerService | /Computer Service/Logic/LogicModels/LogicMaster.cs | 3.03125 | 3 | using Database.EntityModels;
using System;
using System.Data;
using System.Linq;
namespace Logic
{
public class LogicMaster
{
public static int GetIdMaster(string ID)
{
Model1 db = new Model1();
string[] NameArray = new string[1];
NameArray = ID.Split(' ');
... |
fd625abe41487a75f1b4a5dfd44b2ed29b475bb8 | C# | adamtuliper/csharp-features | /CSharp6/CollectionInitialization.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace c_sharp_7.CSharp6
{
public class Attendees
{
public Attendees()
{
//Old
var list = new Dictionary<int, Attendee>();
list.Add(1029188... |
c080532a94c099ff81d129aaaeda85499463ea95 | C# | jessetinell/ShopifyMessages | /ShopifyMessages.Api/Models/MessageJsonResponse.cs | 2.609375 | 3 | using ShopifyMessages.Core;
using ShopifyMessages.Core.Models;
using System.Collections.Generic;
using System.Linq;
namespace ShopifyMessages.Api.Models
{
public class MessageJsonResponse
{
public string Id { get; set; }
public string Html { get; set; }
public int MaxWidth { get; set; ... |
e4e3449ddf3cd335366ffa8607592c79167a933d | C# | Thomas789-Tak/Rhythm | /RhythmiCar_Unity/Assets/1_Scripts/4_Data/SongDataContainer.cs | 2.53125 | 3 | using UnityEngine;
using System.Collections.Generic;
[CreateAssetMenu(fileName = "SongDataContainer", menuName = "Scriptable Object/Song Data Container")]
public class SongDataContainer : ScriptableObject
{
public List<SongInformationData> songInformationDatas = new List<SongInformationData>();
public List<S... |
8a4e81f8205346ac90810e824ce76388eb87d7e5 | C# | RebeccaSeel/InheritancePolymorphismPractice | /InheritancePolymorphismPractice/Program.cs | 3.484375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InheritancePolymorphismPractice
{
class Program
{
static void Main(string[] args) //this is where the app/program is run from because it is the Main
{
//cre... |
8edfd31f8c69057b9dd009536ba1018d49ceac70 | C# | christianempire/ULima.CodeWarrior | /Assets/Scripts/Shared/PositionableEntity.cs | 2.59375 | 3 | using UnityEngine;
namespace Assets.Scripts.Shared
{
public abstract class PositionableEntity : MonoBehaviour
{
public Vector2 GetColliderPosition()
{
return new Vector2(transform.position.x, transform.position.y) - GetColliderPositionOffset();
}
public Vector2 Get... |
07e89fe9835fc347eecf49e46fcbf19a52165d91 | C# | kayleighagius/weather-forecast-web-api-kayleigh-agius | /Endpoints/WeatherBitEndpoint.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace WeatherForecastWebClient.Endpoints
{
class WeatherBitEndpoint : Endpoint
{
//http://api.weatherbit.io/v2.0/current?key={your api key}&units=M&city{city name}&country={country code}
//http://api.weatherbit.io/v2.... |
46b506aa8557f562ee51798c87ae787749abbc69 | C# | chuxuantinh/Software-Dev | /13.DS-Adv/exam28Nov2020/01. Classroom - Correctness_Skeleton/01.Classroom/Class.cs | 2.796875 | 3 | using System.Collections.Generic;
namespace _01.Classroom
{
public class Class
{
public Class(string name)
{
this.Name = name;
}
public string Name { get; set; }
public Dictionary<string, Student> Students { get; set; } = new Dictionary<string, Student>();
... |
c7ec852e5e05443ae8f41371fe1cfbdaab8010f6 | C# | WickedFlame/RubberStamp | /src/RubberStamp.UnitTest/ValidatorTests.cs | 2.859375 | 3 | using System.Linq;
using RubberStamp.Rules;
using NUnit.Framework;
using RubberStamp.Conditions;
namespace RubberStamp.UnitTest
{
[TestFixture]
public class ValidatorTests
{
[Test]
public void RubberStamp_Validator_AddRule_Test()
{
var rule = new ValidationRule<TestClas... |
748a19d37372eb716ff0d7a98e0b9e3931963e7a | C# | code-jtxzromx/projectHerbariumMgmtIS | /projectHerbariumMgmtIS/Model/SpeciesNomenclature.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace projectHerbariumMgmtIS.Model
{
public class SpeciesNomenclature
{
// Properties
public int AltNameID { get; set; }
... |
674b6fb32d703a2a025d5ab46fc609ecf9acf8e8 | C# | KeRNeLith/QuikGraph | /tests/QuikGraph.Tests/Predicates/Graphs/GraphTestsBases/FilteredGraphTestsBase.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using NUnit.Framework;
using QuikGraph.Tests.Structures;
using static QuikGraph.Tests.AssertHelpers;
using static QuikGraph.Tests.GraphTestHelpers;
namespace QuikGraph.Tests.Predicates
{
/// <summary>
/// Base class for filtered grap... |
9cb60ebb4e381948330f621e8446bd23c0000aa0 | C# | ShabnamZ/GoldBadgeChallenges | /02_ClaimConsole/ClaimUI.cs | 3.28125 | 3 | using _02_ClaimRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02_ClaimConsole
{
public class ProgramUI
{
private ClaimRepository _claimRepo = new ClaimRepository();
public void Run()
{
... |
ef9dcc2f17cb57c78c39831601910f2d7ee91d2f | C# | Cormac131/A2Project | /C#/Application Test/MainControls/Login.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Application_Test
{
public partial class Login : UserControl
{
string uname = "... |
8e473a5e630d52b14d528d768917e7e49c453da2 | C# | ZimingYuan/Cooking | /Assets/Scripts/CookingStepCollection.cs | 2.546875 | 3 | using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using UnityEngine.UI;
public class CookingStepCollection {
public List<CookingStep> CookingSteps;
public CookingStepCollection() {
CookingSteps = new List<CookingStep>();
}
// 根据名字查找烹饪步骤对象
public CookingStep FindByN... |
033a362cdec349a64f48ada4a87d8b2234448abe | C# | Fantin-Verpillot/IziWatch | /IziWatch/DataAccess/Article.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace IziWatch.DataAccess
{
public class Article
{
public static bool CreateArticle(DBO.Article article)
{
using (IziWatchEntities bdd = new IziWatchEntities())
{
... |
7169d19a4ca3de27a4821a77e0269fbb517bc119 | C# | Titwin/TinyWorld | /Assets/Scripts/EquipementSystem/HeadItem.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HeadItem : Item
{
public enum Type
{
None,
NackedA, NackedB, NackedC, NackedD, NackedE,
HeadbandA, HeadbandB, HeadbandC, HeadbandD, HeadbandE, HeadbandF,
HoodA, HoodB, HoodC, HoodD, Hood... |
805787d1cbf00f4da5c71de88f8139a03d4a1ab1 | C# | RonnyVenegas/PaisMio | /Pais Mio Envasado/BL/BL_Insumo.cs | 2.921875 | 3 | using DAO;
using DO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BL
{
/// <summary>
/// En esta clase se encuentra la logica de negocio de los insumos
/// </summary>
public class BL_Insumo
{
/// <summary>
... |
bc267ba27d31ed39c67fe35a75271b58afc161e4 | C# | BorisLechev/Programming-Basics | /Documents/Github/Programming-Fundamentals/11. Programming Fundamentals Extended/Exams/Extended Exam - 20.08.2017/2.Entertrain/Program.cs | 3.671875 | 4 | namespace _2.Entertrain
{
using System;
using System.Collections.Generic;
using System.Linq;
public class Entertrain
{
public static void Main()
{
int locomotivesPower = int.Parse(Console.ReadLine());
var wagonsAndWeight = new List<int>();
string... |
b7b1ff4ad72c926b1a843bfef5328da0e997755a | C# | Zagorouiko/Unity_SteamVR_Prototypes | /Assets/Scripts/RandomAgent.cs | 2.515625 | 3 | using UnityEngine;
using System.Collections;
[ RequireComponent (typeof(NavMeshAgent)) ]
public class RandomAgent : MonoBehaviour {
private NavMeshAgent agent;
// Use this for initialization
void Start () {
agent = GetComponent<NavMeshAgent>();
}
// Update is called once per frame
void Update () ... |
94315bfbe5f8e75010df75232c8d7401af51caf3 | C# | RafaNetow/TBGestor | /ManagerTool/ManagerTool/Clases/UserManager.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace ManagerTool.Clases
{
public class UserManager
{
public HandlerConnect... |
67b8288b44683aaff078c002a8fdef8a8362270b | C# | PeijinGit/EscapeRoute | /EscapeRoute/Business/UserBLL.cs | 2.734375 | 3 | using Business.Interfaces;
using Microsoft.IdentityModel.Tokens;
using Models;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
namespace Business
{
public class UserBLL : IUser
{
public User Login(string userName, ... |
4226f1ec4d58d0a1c5ce0bd47a6a612bc4e7f252 | C# | BHD233/OH-Record | /OHRecord/OHRecord/OHRecord/MainPage.xaml.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace OHRecord
{
public class RecordTitle
{
public static string backGroundColor = "333333";
public Button summaryButton = new... |
b3ea5c1a93d92eb0a71490b08088275b16ca5486 | C# | shendongnian/download4 | /code2/278537-5703518-12268816-2.cs | 3.421875 | 3 | public class Person {
private string firstName;
private string lastName;
public Person(string firstName, string lastName) {
//How could you set the first name passed in the constructor to the local variable if both have the same?
this.firstN... |
56a24cc819abdf6dcf5f6144bf7e95c27028e522 | C# | GustavoCasco/Senai---Desenvolvimento-de-sistemas | /1° Semestre/exercicio em c#/média/Program.cs | 3.3125 | 3 | using System;
namespace média
{
class Program
{
static void Main(string[] args)
{
double nota1= 0;
double nota2 = 0;
double nota3 = 0;
double nota4 = 0;
double média;
Console.WriteLine("Digite a sua 1° nota:");
nota1 =... |
523928522b40a36e93540e65ad791346d6a01ac5 | C# | radtek/aria2gui | /Aria2/PortHelper.cs | 2.625 | 3 | using System;
using System.Net;
using System.Linq;
using System.Net.NetworkInformation;
namespace Aria2
{
public class PortHelper
{
public int[] GetUsedPorts()
{
//获取本地计算机的网络连接和通信统计数据的信息
IPGlobalProperties ipGlobalProperties = IPGlobalProperties.GetIPGlobalP... |
43fbf5528a38a8b9f31661cae100e6c8f8df79b5 | C# | AndreasZach/CC_LagerSystem | /PizzaOrder.Tests/Fakes/TestHttpMessagehandlerTests.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
namespace PizzaOrder.Tests.Fakes
{
[TestClass]
public class TestHttpMessageHan... |
0f9170ff4aecd47bb65e27b272f03d4a6217129a | C# | TalipSalihoglu/.NetCore-Patika | /MovieStore/Webapi/Application/MovieOperations/Commands/UpdateMovie/UpdateMovieCommand.cs | 2.90625 | 3 | using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Webapi.DbOperations;
using System;
using Webapi.Entities;
namespace WebApi.Application.MovieOperations.Commands.UpdateMovie{
public class UpdateMovieCommand{
private readonly MovieStoreDbContext _context;
public UpdateMovi... |
d4a37b333751ddfde86940a3b61fa4eb0ff7fdb5 | C# | garnhold/CrunchyBox | /CrunchyDough/VectorI2/Extensions/VectorI2Extensions_With.cs | 2.78125 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
namespace Crunchy.Dough
{
static public class VectorI2Extensions_With
{
static public VectorI2 GetWithX(this VectorI2 item, int x)
{
return new VectorI2(x, item.y);
}
static public VectorI2 G... |
2be6b51fc3d5deb707c06fb64a8c40ee6aea9b57 | C# | vv-b-s/SoftUni | /C# OOP Advanced/Reflection and Attributes/Exercise/P02_BlackBoxInteger/BlackBoxIntegerTests.cs | 3.28125 | 3 | namespace P02_BlackBoxInteger
{
using System;
public class BlackBoxIntegerTests
{
public static void Main()
{
var bbInstance = typeof(BlackBoxInteger).GetConstructor(System.Reflection.BindingFlags.NonPublic|System.Reflection.BindingFlags.Instance, null, new Type[0], null).Invok... |
251703aad5a78d4ea33ff62617e1304ccc65c781 | C# | u3d-zhzw/GDX | /Runtime/CapsuleColliderExtensions.cs | 2.6875 | 3 | // Copyright (c) 2020-2021 dotBunny Inc.
// dotBunny licenses this file to you under the BSL-1.0 license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
using UnityEngine;
namespace GDX
{
/// <summary>
/// <see cref="UnityEngine.CapsuleCollider" />... |
44770207e35eed8632cf58bca4ad91f031f58e8f | C# | ebenzo/InmobiliariaNet | /ProgPuntoNet_bkp3/Inmobiliaria/Models/RepositorioContrato.cs | 2.640625 | 3 | using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
namespace Inmobiliaria.Models
{
public class RepositorioContrato : RepositorioBase, IRepositorio<Contrato>
{
public... |
e6487a7ac4ad16021fa62afeed5bbe3433b9dddc | C# | Pepsi4/Chat | /Server/IChat.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel.Description;
using System.ServiceModel;
namespace Server
{
[ServiceContract(CallbackContract = typeof(IChatCallBack), SessionMode = Sess... |
175b6aebdd82afa58e5d23e9b90729688c32f23e | C# | gastonm05/Cohesion | /CohesionTest/CohesionTest/Pages/AmazonHome.cs | 2.515625 | 3 | using OpenQA.Selenium;
using OpenQA.Selenium.Support.UI;
using System;
using System.Collections.Generic;
using System.Text;
using SeleniumExtras.WaitHelpers;
namespace CohesionTest.Pages
{
public class AmazonHome
{
private readonly IWebDriver _webDriver;
public AmazonHome(IWebDriver driver)
... |
b22eeabfa1e5daefed3de330672534b08ddcbd1b | C# | foridulislam21/Datting-Application | /DatingApp/DatingApp.Repositories/PhotoRepository.cs | 2.515625 | 3 | using System.Linq;
using System.Threading.Tasks;
using DatingApp.Abstractions.Repository;
using DatingApp.DbServer;
using DatingApp.Models;
using DatingApp.Repositories.Base;
using Microsoft.EntityFrameworkCore;
namespace DatingApp.Repositories
{
public class PhotoRepository : EfRepository<Photo>, IPhotoRepository... |
c7ec162ccb629157114e0cbdce57af713a18ca4a | C# | Notahina/PortGestion | /Models/Dao/FinPropositionDao.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
namespace PortGestion.Models.Dao
{
public class FinPropositionDao
{
public void UpdateProposition(SqlConnection c,FinProposition[] liste)
{
DbConnect db = new DbConnect... |
844b566129b4ba7b4ce181c7208afb4e5422a3f4 | C# | eugene-tt/hChallenges | /Challenge2/Data/Controllers/TransportController.cs | 2.859375 | 3 | using Challenge2.Data.Entities;
using Challenge2.Data.Exceptions;
using System;
using System.Collections.Generic;
namespace Challenge2.Data.Controllers
{
public class TransportController : BaseController
{
public int GetCount()
{
lock (context.SyncRoot)
{
... |
04a4dd7ba1199d0eb41425bfb008f0ba5f8adf2b | C# | aramgyulbekyan/Zil_homeworks | /9/Program.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _9
{
class Program
{
static void Main(string[] args)
{
double N = 0;
string input1 = Console.ReadLine();
if (string.IsNullOrEmpty(i... |
a0cab071428a939965c08172b6d7cebdfc4ed343 | C# | lawrence-laz/Decor.NET | /Decor.UnitTests/DependencyLifeTimeTests.cs | 2.703125 | 3 | using Microsoft.Extensions.DependencyInjection;
using System.Threading.Tasks;
using Xunit;
namespace Decor.UnitTests
{
public class DependencyLifeTimeTests
{
[Fact]
public void I_can_decorate_with_decorator_that_has_scoped_dependency()
{
// Arrange
var servicePr... |
f58871b22e2dd3b7be1b16352ba8d55b5bb13d8f | C# | ImCarrot/Template10 | /Services/Template10.Services.Container/Service/ContainerService.cs | 2.765625 | 3 | namespace Template10.Services.Container
{
public abstract class ContainerService : IContainerService
{
static IContainerService _Default;
public static IContainerService Default
{
get => _Default;
set => _Default = value;
}
public ContainerServic... |
aa61f3033601c5419bccaf5c1bb5f217e55b733b | C# | fafase/PopBlast | /Assets/Scripts/AppControl/ItemGenerator.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using PopBlast.Items;
namespace PopBlast.AppControl
{
/// <summary>
/// Component controlling the grid of items
/// Main business logic of the system
/// </summary>
public class ItemGenerator : MonoBehavio... |
75a9b930346a51e531d577ee28cb7494abf80e68 | C# | toshko93/0.0.CSharp-Basics | /05.Conditional-Statements/05.Conditional-Statements/01.SwapIfGreater/SwapIfGreater.cs | 4.28125 | 4 | // Write an if-statement that takes two integer variables a and b and exchanges their values if the first one is greater than the second one.
// As a result print the values a and b, separated by a space.
using System;
class SwapIfGreater
{
static void Main()
{
Console.WriteLine("Enter the... |
1d07c7a652209c3225bf8a01a27fafc148c437f8 | C# | dazinator/FluentGit | /src/FluentGit/Builder/NewRemoteBuilder.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FluentGit
{
public class NewRemoteBuilder : INewRemoteBuilder
{
internal NewRemoteBuilder()
{
// _repo = repo;
}
INewRemoteBuilder INewRemoteBuilder.WithName(st... |
689b79f51d5576f3b87900044d8ce8a41d241bea | C# | vu111293/pat-design | /PAT-KWSN_20150204/PAT.Common/GUI/TAModule/TAModel.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using PAT.Common.GUI.Drawing;
using Tools.Diagrams;
namespace PAT.Common.GUI.TAModule
{
public class TAModel
{
public string Declaration;
public List<TACanvas> Processes;
public List<TACanvas> Properti... |
1179ea430e97a012df3a45fccd43f6b9ac5036cf | C# | Suremaker/mapGenerator-proto | /LandTileGenerator/Generators/Heights/BorderHeightGenerator.cs | 3.015625 | 3 | namespace LandTileGenerator.Generators.Heights
{
public abstract class BorderHeightGenerator : HeightGenerator
{
private readonly float _ymargin;
private readonly float _xmargin;
protected BorderHeightGenerator(float xmargin, float ymargin)
{
_xmargin = xma... |
b1b84ff8bc6db1f6f0092a9095cd89ffc52011e7 | C# | stryt2/syntec-unit-test-101 | /money/1_BankAccount/BankAccountDebitTests.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Demo._1_BankAccount
{
/// <summary>
/// verify the behavior of the 'Debit' method of the BankAccount class.
/// </summary>
class BankAccountDebitTests
{
[Test]
... |
779d279286c8006fad83c8c023b604d56a6f8b27 | C# | stajs/Stajs.Rcon | /Stajs.Rcon.Core/Extensions/IntExtensions.cs | 2.609375 | 3 | using System;
using Stajs.Rcon.Core.Responses;
namespace Stajs.Rcon.Core.Extensions
{
internal static class IntExtensions
{
internal static ServerResponseType ToResponseType(this int i)
{
if (!Enum.IsDefined(typeof(ServerResponseType), i))
throw new InvalidCastException("Value is not defined in enum");
... |
a7c6cce2d41e1e763cf2c776c875544c5302cc43 | C# | mobydi/wikiapp | /WikiAppTest/MetricCalculation.cs | 2.625 | 3 | using System.Linq;
using SimMetrics.Net.API;
using SimMetrics.Net.Metric;
using WikiApp.Models;
using Xunit;
using WikiApp.WikiApi;
using Xunit.Abstractions;
namespace WikiAppTest
{
public class MetricCalculation
{
private readonly ITestOutputHelper output;
public MetricCalculation(ITestOutput... |
08a45a4926d054621521000386bc2e0d5b45bfc4 | C# | MichaelDouglasAmarante/learning | /CursoCSharp-Cod3rCursos/CursoCSharp/Fundamentos/Conversoes.cs | 3.734375 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace CursoCSharp.Fundamentos
{
class Conversoes
{
public static void Executar()
{
int inteiro = 10;
double quebrado = inteiro;
Console.WriteLine(quebrado);
// Conversões qu... |