100+ results for 'using System.Linq;'
Not the results you expected?
CommandSettings.cs (https://gitlab.com/srbhgupta/vsts-agent) C# · 310 lines
SearchTest.cs (https://github.com/kuangmarkeleven/GiveCRM.git) C# · 246 lines
TimelineViewModel.cs (https://bitbucket.org/thedmi/reactrt.git) C# · 349 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Collections.ObjectModel;
6 using ReactRT.Observatory.Monitor.Domain;
7 using GalaSoft.MvvmLight;
8 using System.ComponentModel;
9 using GalaSoft.MvvmLight.Command;
10 using System.Windows.Input;
11 using System.Collections.Specialized;
12 using System.Windows.Media;
FlowEngine.cs (https://gitlab.com/justbediego/Isaap) C# · 248 lines
RedundantSubqueryRemover.cs (https://bitbucket.org/moisesmiranda/subsonic-4.git) C# · 265 lines
QueryPartDriver.cs (https://bitbucket.org/oleg_ator/orchard.test.git) C# · 201 lines
Conventions.cs (https://github.com/MikeEast/NServiceBus.git) C# · 272 lines
CustomSorting.cs (https://github.com/fitzchak/ravendb.git) C# · 272 lines
4 // </copyright>
5 // -----------------------------------------------------------------------
6 using System;
7 using System.Collections.Generic;
8 using System.Linq;
9 using Jint.Parser;
10 using Raven.Abstractions.Data;
11 using Raven.Abstractions.Indexing;
12 using Raven.Client.Indexes;
13 using Raven.Json.Linq;
14 using Raven.Tests.Common;
75 using (var store = NewDocumentStore())
76 {
77 using (var session = store.OpenSession())
78 {
79 session.Store(new User { Name = "Maxim" });
SearchExpression.cs (https://gitlab.com/Tiger66639/neural_network_designer) C# · 248 lines
1 using JaStDev.HAB.Brain;
2 using JaStDev.HAB.Brain.Thread_syncing;
3 using System.Collections.Generic;
4 using System.Linq;
6 namespace JaStDev.HAB.Expressions
158 {
159 case (ulong)PredefinedNeurons.In:
160 using (LinksAccessor iLinksIn = iToSearch.LinksIn)
161 {
162 iSearchData.ToSearch = iLinksIn.Items;
167 case (ulong)PredefinedNeurons.Out:
168 using (LinksAccessor iLinksOut = iToSearch.LinksOut)
169 iSearchData.ToSearch = iLinksOut.Items;
170 SearchForItemsIn(iSearchData, false);
Sound.cs (https://github.com/dzamkov/Bit-Orchestra.git) C# · 370 lines
MakeCharacter.cs (https://gitlab.com/sheminusminus/filament) C# · 380 lines
SubclassInspectorMapsToSubclassMapping.cs (https://github.com/JasonTrue/fluent-nhibernate.git) C# · 398 lines
1 using System;
2 using System.Linq;
3 using System.Linq.Expressions;
4 using System.Reflection;
5 using FluentNHibernate.Automapping.TestFixtures;
6 using FluentNHibernate.Conventions;
7 using FluentNHibernate.Conventions.Inspections;
8 using FluentNHibernate.MappingModel;
9 using FluentNHibernate.MappingModel.ClassBased;
10 using FluentNHibernate.MappingModel.Collections;
11 using FluentNHibernate.Utils;
VsStepSuggestionBindingCollector.cs (https://github.com/danemorgridge/SpecFlow.git) C# · 247 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text.RegularExpressions;
5 using EnvDTE;
6 using EnvDTE80;
7 using TechTalk.SpecFlow.Bindings;
8 using TechTalk.SpecFlow.Bindings.Reflection;
9 using TechTalk.SpecFlow.Vs2010Integration.Utils;
11 namespace TechTalk.SpecFlow.Vs2010Integration.LanguageService
CachedDataAnnotationsModelMetadata.cs (https://bitbucket.org/mdavid/aspnetwebstack.git) C# · 267 lines
NestedSelectsTests.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 465 lines
MongoDatabase.cs (https://github.com/fusspawn/sobriety.git) C# · 314 lines
MongoUrl.cs (https://github.com/zxy050/mongo-csharp-driver.git) C# · 346 lines
VMRoleOperationsTests.cs (https://gitlab.com/jslee1/azure-powershell) C# · 212 lines
13 // ----------------------------------------------------------------------------------
15 using System;
16 using System.Collections.Generic;
17 using System.Linq;
18 using System.Net;
19 using System.Net.Http;
20 using Microsoft.WindowsAzure.Commands.ScenarioTest;
21 using Xunit;
22 using Microsoft.WindowsAzure.Commands.Test.WAPackIaaS.Mocks;
23 using Microsoft.WindowsAzure.Commands.Utilities.WAPackIaaS;
24 using Microsoft.WindowsAzure.Commands.Utilities.WAPackIaaS.DataContract;
HotelController.cs (https://bitbucket.org/JPomichael/miaow.git) C# · 298 lines
QuadTree.cs (https://github.com/origins/WCell.git) C# · 331 lines
NHSecurity.cs (https://gitlab.com/d.sreejith/MIS_wds) C# · 317 lines
HTTPVersion.cs (https://github.com/Vanaheimr/Hermod.git) C# · 378 lines
TestInheritanceWithConcreteBaseClass.cs (https://github.com/weiheng/mongodb-csharp.git) C# · 276 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using NUnit.Framework;
7 namespace MongoDB.IntegrationTests.Inheritance
63 [Test]
64 public void Should_persist_discriminator_using_base_class_collection()
65 {
66 var animalCollection = DB.GetCollection<Animal>();
78 [Test]
79 public void Should_persist_discriminator_using_inherited_class_collection()
80 {
81 var animalCollection = DB.GetCollection<Cat>();
MsmqInteraction.cs (https://github.com/asgerhallas/Rebus.git) C# · 256 lines
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using System.Linq;
5 using System.Messaging;
6 using System.Text;
7 using System.Threading.Tasks;
8 using GalaSoft.MvvmLight.Messaging;
9 using Newtonsoft.Json;
10 using Rebus.Shared;
11 using Rebus.Snoop.Events;
12 using Rebus.Snoop.ViewModel.Models;
13 using Message = Rebus.Snoop.ViewModel.Models.Message;
HubProgressFacts.cs (https://gitlab.com/scgitlab/SignalR) C# · 204 lines
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 using Microsoft.AspNet.SignalR.Client;
7 using Microsoft.AspNet.SignalR.Tests.Common.Infrastructure;
8 using Xunit;
9 using Xunit.Extensions;
11 namespace Microsoft.AspNet.SignalR.FunctionalTests.Server.Hubs
34 var jobName = "test";
36 using (hubConnection)
37 {
38 await hubConnection.Start(host.Transport);
site-obj.cs (https://github.com/easymovet/ServerCyde.git) C# · 204 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Web;
5 using SharpFusion;
7 namespace ServerCydeData
72 //select
73 using (DAL.Procs.usp_site_sel dal = new DAL.Procs.usp_site_sel())
74 {
75 dal.id = ID;
112 List<Site> _Sites = new List<Site>();
113 using (DAL.Procs.usp_site_sel_by_user_id dal = new DAL.Procs.usp_site_sel_by_user_id())
114 {
115 dal.user_id = user_id;
UnityDependencyResolver_Specification.cs (https://github.com/jbogard/openrasta-stable.git) C# · 336 lines
1 using System.Collections;
2 using System.Linq;
3 using InternalDependencyResolver_Specification;
4 using Microsoft.Practices.Unity;
5 using NUnit.Framework;
6 using OpenRasta.DI;
7 using OpenRasta.DI.Unity;
8 using OpenRasta.DI.Unity.Extensions;
9 using OpenRasta.Testing;
167 }
169 public class when_using_a_parent_container_with_unity_dependency_resolver : dependency_resolver_context
170 {
171 IUnityContainer parent;
CachingLookupTests.cs (https://gitlab.com/sharadag/TestProject2) C# · 287 lines
1 // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3 using System;
4 using System.Collections.Generic;
5 using System.Collections.Immutable;
6 using System.Linq;
7 using Microsoft.CodeAnalysis.Collections;
8 using Microsoft.CodeAnalysis.Text;
9 using Xunit;
IntervalTree`1.cs (https://gitlab.com/sharadag/Roslyn) C# · 302 lines
1 // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3 using System;
4 using System.Collections;
5 using System.Collections.Generic;
6 using System.Diagnostics;
7 using System.Linq;
8 using Microsoft.CodeAnalysis.Text;
9 using Roslyn.Utilities;
11 namespace Microsoft.CodeAnalysis.Shared.Collections
OptionsMenu.cs (https://bitbucket.org/IVmost/portfolio.git) C# · 259 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
6 using Microsoft.Xna.Framework;
7 using Microsoft.Xna.Framework.Audio;
8 using Microsoft.Xna.Framework.Content;
9 using Microsoft.Xna.Framework.GamerServices;
10 using Microsoft.Xna.Framework.Graphics;
11 using Microsoft.Xna.Framework.Input;
IFSIOServiceFileTests.cs (https://bitbucket.org/xact/cs.ff.xact.lib.git) C# · 351 lines
4 using System.IO;
5 using System.Linq;
6 using NUnit.Framework;
7 using XAct;
8 using XAct.IO;
282 //Should have got back IsolatedStorage service:
283 using (Stream stream = ioService.FileOpenWriteAsync("%userprofile%\\Test.txt").Result)
284 {
285 using (StreamWriter streamWriter = stream.CreateStreamWriter())
291 using (Stream stream = ioService.FileOpenReadAsync("%userprofile%\\Test.txt").Result)
292 {
293 using (StreamReader streamWriter = stream.CreateStreamReader())
294 {
295 string result = streamWriter.ReadLine();
View.cs (https://github.com/paulcbetts/CaliburnMicro.git) C# · 263 lines
EditingElementsReferencedByOrReferences_Tests.cs (https://gitlab.com/Banul/la-project1) C# · 350 lines
6 //-----------------------------------------------------------------------
8 using System;
9 using System.Collections.Generic;
10 using System.Globalization;
11 using System.IO;
12 using System.Linq;
13 using System.Xml;
14 using Microsoft.Build.Construction;
15 using Microsoft.Build.Evaluation;
16 using Xunit;
18 namespace Microsoft.Build.UnitTests.OM.Definition
AttributeMapperSpecs.cs (https://bitbucket.org/expand/expand.git) C# · 216 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Machine.Specifications;
5 using Microsoft.SqlServer.Management.Smo;
6 using TypeMock.ArrangeActAssert;
7 using Xpand.ExpressApp.WorldCreator.SqlDBMapper;
8 using Xpand.Persistent.Base.PersistentMetaData;
9 using Xpand.Persistent.Base.PersistentMetaData.PersistentAttributeInfos;
10 using Xpand.Persistent.BaseImpl.PersistentMetaData.PersistentAttributeInfos;
SyntaxEditor.cs (https://gitlab.com/sharadag/Roslyn) C# · 266 lines
1 // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 using System.Threading.Tasks;
8 using Roslyn.Utilities;
MongoCollectionExtensions.cs (https://github.com/spitnquit/NoRM.git) C# · 230 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Norm.Collections;
6 using System.Linq.Expressions;
7 using Norm.BSON;
8 using Norm.Configuration;
9 using Norm.Protocol.Messages;
10 using Norm.Linq;
11 using Norm.Commands.Modifiers;
13 namespace Norm
FullScreenBehavior.cs (https://github.com/verbatium/KinectFish.git) C# · 338 lines
GenericStorageProvider.cs (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) C# · 305 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using AppLimit.CloudComputing.SharpBox.Common.IO;
5 using AppLimit.CloudComputing.SharpBox.Exceptions;
6 using AppLimit.CloudComputing.SharpBox.StorageProvider.API;
7 using AppLimit.CloudComputing.SharpBox.StorageProvider.BaseObjects;
9 namespace AppLimit.CloudComputing.SharpBox.StorageProvider
TypeUtilities.cs (https://gitlab.com/kush/Avalonia) C# · 339 lines
2 // Licensed under the MIT license. See licence.md file in the project root for full license information.
4 using System;
5 using System.Globalization;
6 using System.Linq;
7 using System.Reflection;
204 /// <summary>
205 /// Try to convert a value to a type using the implicit conversions allowed by the C#
206 /// language.
207 /// </summary>
282 /// <summary>
283 /// Convert a value to a type using the implicit conversions allowed by the C# language or
284 /// return the default for the type if the value could not be converted.
285 /// </summary>
AnyMutablePropertyModelGenerationTests.cs (https://github.com/eltigre/fluent-nhibernate.git) C# · 282 lines
WorkflowTypeBag.cs (https://github.com/SparkDevNetwork/Rock.git) C# · 270 lines
UserExtensionService.cs (https://bitbucket.org/JPomichael/miaow.git) C# · 295 lines
XmlPropertyBag.cs (https://github.com/pruiz/mono.git) C# · 315 lines
5 namespace System.Activities.DurableInstancing
6 {
7 using System;
8 using System.Collections.Generic;
9 using System.Globalization;
10 using System.IO;
11 using System.IO.Compression;
12 using System.Linq;
13 using System.Runtime;
14 using System.Text;
15 using System.Xml;
16 using System.Xml.Linq;
17 using System.Xml.Schema;
PartitionerQueryOperator.cs (https://github.com/pruiz/mono.git) C# · 276 lines
12 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
14 using System;
15 using System.Collections.Generic;
16 using System.Linq;
17 using System.Text;
18 using System.Collections.Concurrent;
19 using System.Linq.Parallel;
20 using System.Diagnostics.Contracts;
21 using System.Threading;
22 #if SILVERLIGHT
23 using System.Core; // for System.Core.SR
24 #endif
ConfigurationSectionHandler.cs (https://github.com/danemorgridge/SpecFlow.git) C# · 309 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Configuration;
4 using System.Globalization;
5 using System.IO;
6 using System.Linq;
7 using System.Xml;
8 using BoDi;
10 namespace TechTalk.SpecFlow.Configuration
75 section.Init();
76 section.Reset(null);
77 using (var reader = new XmlTextReader(new StringReader(xmlContent.Trim())))
78 {
79 section.DeserializeSection(reader);
LZ4Decompressor.c (https://github.com/stangelandcl/LZ4Sharp.git) C · 273 lines
SerializationHelper.Surrogates.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 309 lines
GeneticEngine.cs (https://github.com/thepowersgang/cits3200.git) C# · 321 lines
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using GeneticAlgorithm.Plugin;
7 using GeneticAlgorithm.Plugin.Generic;
10 {
11 /// <summary>
12 /// Runs a genetic algorithm using the supplied plug-ins.
13 /// </summary>
14 public class GeneticEngine
156 /// <summary>
157 /// Reset the genetic engine by setting the generation count to 0 and using the populator plug-in
158 /// to generate a new initial population
159 /// </summary>
EnumerableExtensions.cs (https://github.com/loresoft/LoreSoft.Shared.git) C# · 279 lines
Fixture.cs (https://github.com/oskarb/nhibernate-core.git) C# · 417 lines
1 using System;
2 using System.Linq;
3 using NUnit.Framework;
174 using (var session = OpenSession())
175 {
176 using (var transaction = session.BeginTransaction())
177 {
178 _auditEventListener.Start();
195 using (var session = OpenSession())
196 {
197 using (var transaction = session.BeginTransaction())
198 {
199 testEmployee.Name = "Mike";
213 {
215 using (var session = OpenSession())
216 {
217 using (var transaction = session.BeginTransaction())
Configuration.cs (https://gitlab.com/akkhil2012/swagger-codegen) C# · 283 lines
1 using System;
2 using System.Reflection;
3 using System.Collections.Generic;
4 using System.IO;
5 using System.Linq;
6 using System.Text;
39 )
40 {
41 setApiClientUsingDefault(apiClient);
43 Username = username;
64 public Configuration(ApiClient apiClient)
65 {
66 setApiClientUsingDefault(apiClient);
67 }
TwoLocations.cs (https://github.com/fitzchak/ravendb.git) C# · 274 lines
5 // -----------------------------------------------------------------------
7 using System.Linq;
8 using FastTests;
9 using Raven.Client.Documents;
10 using Raven.Client.Documents.Indexes;
11 using Raven.Client.Documents.Indexes.Spatial;
12 using Xunit;
29 private static void Setup(IDocumentStore store)
30 {
31 using (var session = store.OpenSession())
32 {
33 session.Store(new Event
DynamicFields.cs (https://github.com/fitzchak/ravendb.git) C# · 292 lines
2 using System.Collections.Generic;
3 using System.Linq;
4 using FastTests;
5 using Lucene.Net.Documents;
6 using Raven.Client.Documents.Indexes;
144 }
146 using (var session = store.OpenSession())
147 {
148 var products = session.Advanced
199 new Product_ByNumericAttributeUsingField().Execute(store);
201 using (var session = store.OpenSession())
202 {
203 session.Store(new Product
StorageStream.cs (https://github.com/fitzchak/ravendb.git) C# · 272 lines
1 using System;
2 using System.IO;
3 using System.Linq;
4 using System.Threading;
5 using Raven.Abstractions.Exceptions;
6 using Raven.Database.FileSystem.Storage;
7 using Raven.Json.Linq;
8 using Raven.Abstractions.FileSystem;
52 storage.Batch(accessor =>
53 {
54 using (fileSystem.DisableAllTriggersForCurrentThread())
55 {
56 fileSystem.Files.IndicateFileToDelete(fileName, null);
ComboMenu.cs (https://github.com/directhex/monodevelop.git) C# · 431 lines
1 using MonoDevelop.Components.MainToolbar;
2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using System.Threading.Tasks;
7 using System.Windows;
8 using System.Windows.Controls;
9 using System.Windows.Data;
10 using System.Windows.Media;
11 using System.Windows.Shapes;
13 namespace WindowsPlatform.MainToolbar
Field.cs (https://github.com/FudgeMsg/Fudge-CSharp.git) C# · 348 lines
14 * limitations under the License.
15 */
16 using System;
17 using System.Collections.Generic;
18 using System.Linq;
19 using System.Text;
20 using System.Collections;
22 namespace Fudge
71 /// <param name="subFields"></param>
72 /// <example>
73 /// The following example shows a hierarchical message being created using <see cref="Field"/>.
74 /// <code>
75 /// FudgeMsg inputMsg = context.NewMessage(
StateMachineState.cs (https://github.com/MassTransit/Automatonymous.git) C# · 300 lines
NumericConvertBinder.cs (https://github.com/abimaran/clojure-clr.git) C# · 453 lines
4 * Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
5 * which can be found in the file epl-v10.html at the root of this distribution.
6 * By using this software in any fashion, you are agreeing to be bound by
7 * the terms of this license.
8 * You must not remove this notice, or any other, from this software.
16 using System;
17 using System.Collections.Generic;
18 using System.Linq;
19 #if CLR2
20 using Microsoft.Scripting.Ast;
21 #else
22 using System.Linq.Expressions;
23 #endif
24 using Microsoft.Scripting.Actions;
Validation.cs (https://github.com/lefthandedgoat/Oak.git) C# · 408 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Diagnostics;
4 using System.Linq;
5 using Massive;
6 using System.Text.RegularExpressions;
8 namespace Oak
265 public class Uniqueness : Validation
266 {
267 public Uniqueness(string property, DynamicRepository usingRepository)
268 : base(property)
269 {
270 Repository = usingRepository;
271 }
ContainerConfiguration.cs (https://gitlab.com/0072016/0072016-corefx-) C# · 221 lines
3 // See the LICENSE file in the project root for more information.
5 using System.Collections.Generic;
6 using System.Composition.Convention;
7 using System.Composition.Debugging;
8 using System.Composition.Hosting.Core;
9 using System.Composition.TypedParts;
10 using System.Composition.TypedParts.Util;
11 using System.Diagnostics;
12 using System.Linq;
13 using System.Reflection;
58 /// <summary>
59 /// Add conventions defined using a <see cref="AttributedModelProvider"/> to the container.
60 /// These will be used as the default conventions; types and assemblies added with a
61 /// specific convention will use their own.
TestController.cs (https://github.com/Lesssnik/Labs.git) C# · 263 lines
ListProcessor.cs (https://bitbucket.org/unit6ru/templateengine.git) C# · 348 lines
ActionTranslator.cs (https://gitlab.com/swak/UltimaXNA) C# · 323 lines
OLP.Designer.cs (https://gitlab.com/daniel0422/timesheet) C# · 1203 lines
8 //------------------------------------------------------------------------------
10 using System;
11 using System.ComponentModel;
12 using System.Data.EntityClient;
13 using System.Data.Objects;
14 using System.Data.Objects.DataClasses;
15 using System.Linq;
16 using System.Runtime.Serialization;
17 using System.Xml.Serialization;
19 [assembly: EdmSchemaAttribute()]
TagManager.cs (https://github.com/robperson/AssessTrack.git) C# · 311 lines
1 using System;
2 using System.Data;
3 using System.Configuration;
4 using System.Linq;
5 using System.Web;
6 using System.Web.Security;
7 using System.Web.UI;
8 using System.Web.UI.HtmlControls;
9 using System.Web.UI.WebControls;
10 using System.Web.UI.WebControls.WebParts;
11 using System.Xml.Linq;
12 using System.Web.Mvc;
ObjectDef_Compliance.cs (https://github.com/wbinford/fubumvc.git) C# · 323 lines
FixAllContext.DiagnosticProvider.cs (https://gitlab.com/sharadag/Roslyn) C# · 212 lines
1 // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3 using System;
4 using System.Collections.Concurrent;
5 using System.Collections.Generic;
6 using System.Collections.Immutable;
7 using System.Linq;
8 using System.Threading;
9 using System.Threading.Tasks;
10 using Microsoft.CodeAnalysis.GeneratedCodeRecognition;
11 using Microsoft.CodeAnalysis.Internal.Log;
12 using Microsoft.CodeAnalysis.Shared.Utilities;
TraktSettings.cs (https://github.com/Thorsten1982/Trakt-for-Mediaportal.git) C# · 265 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Reflection;
5 using System.Text;
6 using MediaPortal.Profile;
7 using TraktPlugin.TraktAPI;
8 using TraktPlugin.TraktAPI.DataStructures;
180 {
181 TraktLogger.Info("Loading Settings");
182 using (Settings xmlreader = new MPSettings())
183 {
184 Username = xmlreader.GetValueAsString(cTrakt, cUsername, "");
MGraphic.cs (https://github.com/THROYAN/MagicLibrary.git) C# · 272 lines
Translator.cs (https://github.com/diadacs/TekSuite.git) C# · 274 lines
Mock.Openquant.API.cs (https://github.com/DrKoch/StingrayOQ.git) C# · 399 lines
AssociatedMetadataTypeTypeDescriptionProviderTest.cs (https://github.com/kvervo/HorizontalLoopingSelector.git) C# · 237 lines
PagingTests.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 387 lines
BinaryPersistors.cs (https://github.com/ray2006/WCell.git) C# · 521 lines
MyText.cs (https://github.com/SchokoMousse/MVCExtensions.git) C# · 336 lines
Program.cs (https://github.com/ChrisEdwards/IntroducingMongoDB.git) C# · 314 lines
2 using System.Collections.Generic;
3 using System.Linq;
4 using Norm;
5 using Norm.Collections;
6 using Norm.Linq;
44 QueryConditionalOperators( collection );
45 QueryConditionalOperatorsUsingLinq(orderQueryable);
94 private static void QueryConditionalOperatorsUsingLinq(MongoQuery<Order> orders)
95 {
96 Console.WriteLine("\n\n======= Query with Conditional Operators (Using Linq) =======");
RavenDB_9104.cs (https://github.com/fitzchak/ravendb.git) C# · 313 lines
1 using Raven.Client.Documents;
2 using Raven.Client.Documents.Indexes;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Threading;
109 public async Task NullListAsync()
110 {
111 using (var store = GetDocumentStore())
112 {
113 await store.ExecuteIndexAsync(new BlogPostAll());
143 public async Task EmptyListAsync()
144 {
145 using (var store = GetDocumentStore())
146 {
147 await store.ExecuteIndexAsync(new BlogPostAll());
VisibleComponent.cs (https://github.com/trullock/MuonLab.Web.Xhtml.git) C# · 309 lines
RXfixture.cs (https://github.com/GunioRobot/InRetail.git) C# · 243 lines
TypeParserTests.cs (https://github.com/gluck/cecil.git) C# · 394 lines
OrdersAccess.cs (https://github.com/marvellouz/fmi_projects.git) C# · 285 lines
Commands.cs (https://github.com/stolksdorf/taggy.git) C# · 296 lines
SessionsManager.cs (https://bitbucket.org/suwatch/svcodecampweb.git) C# · 204 lines
TabControlTests.cs (https://gitlab.com/kush/Avalonia) C# · 332 lines
2 // Licensed under the MIT license. See licence.md file in the project root for full license information.
4 using System;
5 using System.Collections.ObjectModel;
6 using System.Linq;
7 using Avalonia.Controls.Presenters;
8 using Avalonia.Controls.Primitives;
9 using Avalonia.Controls.Templates;
10 using Avalonia.LogicalTree;
11 using Avalonia.Styling;
12 using Avalonia.UnitTests;
13 using Xunit;
MemberService.Tests.cs (https://github.com/kuangmarkeleven/GiveCRM.git) C# · 220 lines
ExpenseTrackerRepository.cs (https://gitlab.com/arif2009/Building-and-Securing-a-RESTful-API-for-Multiple-Clients-in-ASP.NET) C# · 299 lines
1 using ExpenseTracker.Repository.Entities;
2 using System;
3 using System.Collections.Generic;
4 using System.Data.Entity;
5 using System.Data.Entity.Infrastructure;
6 using System.Linq;
7 using System.Text;
8 using System.Threading.Tasks;
10 namespace ExpenseTracker.Repository
28 // we serialize (b/c the serialization process accesses those properties).
29 //
30 // We don't want that, so we turn it off. We want to eagerly load them (using Include)
31 // manually.
OrganizeTypeDeclarationTests.cs (https://gitlab.com/sharadag/Roslyn) C# · 1129 lines
3 using System;
4 using System.Linq;
5 using System.Threading.Tasks;
6 using System.Xml.Linq;
7 using Microsoft.CodeAnalysis.Editor.Implementation.Interactive;
8 using Microsoft.CodeAnalysis.Editor.Implementation.Organizing;
9 using Microsoft.CodeAnalysis.Editor.UnitTests;
10 using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces;
11 using Microsoft.CodeAnalysis.Text;
12 using Microsoft.VisualStudio.Text.Operations;
13 using Roslyn.Test.Utilities;
FuzzyObject.cs (https://github.com/scottmccain/Fuzzy-Logic-Module.git) C# · 267 lines
JsonSchemaTests.cs (https://github.com/ayoung/Newtonsoft.Json.git) C# · 426 lines
EncogEGBFile.cs (https://github.com/encog/encog-silverlight-core.git) C# · 496 lines
DateParametersComparedTo.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 295 lines
12 using System.Globalization;
13 using System.Linq;
14 using NHibernate.Linq;
15 using NUnit.Framework;
17 namespace NHibernate.Test.NHSpecificTest.NH3961
101 public async Task NonNullableMappedAsDateTimeShouldBeCultureAgnosticAsync()
102 {
103 using (ISession session = OpenSession())
104 using (session.BeginTransaction())
183 public async Task NullableMappedAsDateShouldBeCultureAgnosticAsync()
184 {
185 using (ISession session = OpenSession())
186 using (session.BeginTransaction())
cd_asignar.aspx.cs (https://gitlab.com/fcupen/CLIENT-MANAGEMENT) C# · 252 lines
InFlightTransactionalState.cs (https://github.com/jalchr/ravendb.git) C# · 305 lines
6 using System;
7 using System.Collections.Concurrent;
8 using System.Collections.Generic;
9 using System.Threading;
10 using Raven.Abstractions;
11 using Raven.Abstractions.Data;
12 using Raven.Abstractions.Exceptions;
13 using Raven.Abstractions.Extensions;
14 using Raven.Database.Storage;
15 using Raven.Database.Util;
16 using Raven.Json.Linq;
17 using System.Linq;
19 namespace Raven.Database.Impl
Helpers.cs (https://github.com/DrKoch/StingrayOQ.git) C# · 317 lines
UserRepository.cs (https://gitlab.com/thanhhung95/managecourse) C# · 292 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Data;
4 using System.Data.SqlClient;
5 using System.Linq;
7 namespace Manager.DataLayer.Repositories
60 {
62 using (var conn = new SqlConnection(_connectionString))
63 {
64 MsSqlHelper.ExecuteScalar(conn, CommandType.StoredProcedure,
77 //}
79 //using (var conn = new SqlConnection(_connectionString))
80 //{
81 // MsSqlHelper.ExecuteNonQuery(conn, @"INSERT INTO User_History(AgencyId,UserId,CreatedTime,ActionType,StaffId) VALUES
EpisodeFileMovingService.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 213 lines
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using System.Linq;
5 using NLog;
6 using NzbDrone.Common.Disk;
7 using NzbDrone.Common.EnsureThat;
8 using NzbDrone.Common.Extensions;
9 using NzbDrone.Core.Configuration;
10 using NzbDrone.Core.MediaFiles.Events;
11 using NzbDrone.Core.Messaging.Events;
12 using NzbDrone.Core.Organizer;
13 using NzbDrone.Core.Parser.Model;
QueryInstance.cs (https://quickmon.svn.codeplex.com/svn) C# · 281 lines
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Data;
6 using System.Data.SqlClient;
125 try
126 {
127 using (SqlCommand cmnd = new SqlCommand(SummaryQuery, conn))
128 {
129 cmnd.CommandType = UseSPForSummary ? CommandType.StoredProcedure : CommandType.Text;
152 try
153 {
154 using (SqlCommand cmnd = new SqlCommand(SummaryQuery, conn))
155 {
156 cmnd.CommandType = UseSPForSummary ? CommandType.StoredProcedure : CommandType.Text;
Utility.cs (https://github.com/balaji/Cricketers.git) C# · 240 lines
Generated.cs (https://github.com/iSynaptic/iSynaptic.Core.git) C# · 375 lines
TwentyOne [backup].cs (https://bitbucket.org/critnal/csharp.git) C# · 407 lines
Stck.cs (https://github.com/louthy/language-ext.git) C# · 314 lines
ConversorValor.cs (https://brasilframework.svn.codeplex.com/svn) C# · 326 lines
NavigationToolbar.xaml.cs (https://silverlightbrowser.svn.codeplex.com/svn) C# · 336 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Net;
5 using System.Windows;
6 using System.Windows.Controls;
7 using System.Windows.Documents;
8 using System.Windows.Input;
9 using System.Windows.Media;
10 using System.Windows.Media.Animation;
11 using System.Windows.Shapes;
13 using Silverlight.Navigation.Favorites;
GenericSQLServerDAL.cs (https://quickmon.svn.codeplex.com/svn) C# · 325 lines
3 using System.Data;
4 using System.Data.SqlClient;
5 using System.Diagnostics;
6 using System.Linq;
7 using System.Text;
187 {
188 conn.Open();
189 using (SqlCommand cmnd = new SqlCommand(sql, conn))
190 {
191 cmnd.CommandTimeout = commandTimeout;
235 if (parms != null)
236 cmnd.Parameters.AddRange(parms);
237 using (SqlDataAdapter da = new SqlDataAdapter(cmnd))
238 {
239 da.Fill(returnDS);
Ctrl_Proyecto.cs (https://inventariohardsoft.svn.codeplex.com/svn) C# · 277 lines
RDoc_56.cs (https://github.com/fitzchak/ravendb.git) C# · 236 lines
7 using System.Collections.Generic;
8 using System.Linq;
9 using FastTests;
10 using Raven.Client.Documents;
11 using Raven.Client.Documents.Indexes;
12 using Raven.Client.Documents.Queries;
13 using Xunit;
160 public void IndexesShouldGetCreated()
161 {
162 using (var store = GetDocumentStore())
163 {
164 var array = new RecurseIndexWithArray();
200 post.CommentsSet = commentsSet1;
202 using (var session = store.OpenSession())
203 {
204 session.Store(post);
RouteCacher.cs (https://github.com/fitzchak/ravendb.git) C# · 216 lines
4 // </copyright>
5 // -----------------------------------------------------------------------
6 using System;
7 using System.Collections.Generic;
8 using System.Linq;
9 using System.Reflection;
10 using System.Web.Http;
11 using System.Web.Http.Controllers;
12 using System.Web.Http.Routing;
14 namespace Raven.Database.Server.WebApi
EnumBuilder.Methods.Tests.cs (https://github.com/dotnet/runtime.git) C# · 245 lines
JoinTests.cs (https://github.com/nhibernate/nhibernate-core.git) C# · 307 lines
1 using System.Linq;
2 using NHibernate.Linq;
3 using NHibernate.Util;
4 using NSubstitute;
5 using NUnit.Framework;
7 namespace NHibernate.Test.Linq.ByMethod
13 public void MultipleLinqJoinsWithSameProjectionNames()
14 {
15 using (var sqlSpy = new SqlLogSpy())
16 {
17 var orders = db.Orders
32 public void MultipleLinqJoinsWithSameProjectionNamesWithLeftJoin()
33 {
34 using (var sqlSpy = new SqlLogSpy())
35 {
36 var orders = db.Orders
VersionInspectorMapsToVersionMapping.cs (https://github.com/jcmoinet/fluent-nhibernate.git) C# · 379 lines
1 using System;
2 using System.Linq;
3 using System.Linq.Expressions;
4 using System.Reflection;
5 using FluentNHibernate.Conventions;
6 using FluentNHibernate.Conventions.Inspections;
7 using FluentNHibernate.Mapping;
8 using FluentNHibernate.MappingModel;
9 using FluentNHibernate.Utils.Reflection;
10 using NUnit.Framework;
12 namespace FluentNHibernate.Testing.ConventionsTests.Inspection
CodeFixContext.cs (https://github.com/dotnet/roslyn.git) C# · 258 lines
EmailNotification.cs (https://github.com/tidusjar/Ombi.git) C# · 299 lines
1 using System;
2 using System.Linq;
3 using System.Threading.Tasks;
4 using MailKit.Net.Smtp;
5 using Microsoft.AspNetCore.Identity;
6 using Microsoft.EntityFrameworkCore;
7 using Microsoft.Extensions.Logging;
8 using MimeKit;
9 using Ombi.Core.Settings;
10 using Ombi.Helpers;
11 using Ombi.Notifications.Models;
12 using Ombi.Notifications.Templates;
BindableLayoutTests.cs (https://github.com/xamarin/Xamarin.Forms.git) C# · 429 lines
1 using NUnit.Framework;
2 using System;
3 using System.Collections;
4 using System.Collections.Generic;
5 using System.Collections.ObjectModel;
6 using System.Collections.Specialized;
7 using System.ComponentModel;
8 using System.Linq;
10 namespace Xamarin.Forms.Core.UnitTests
273 [Test]
274 public void ThrowsExceptionOnUsingDataTemplateSelectorForItemTemplate()
275 {
276 var layout = new StackLayout
ConstraintServices.cs (https://github.com/iainlane/mono.git) C# · 214 lines
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 // -----------------------------------------------------------------------
4 using System;
5 using System.Collections.Generic;
6 using System.ComponentModel.Composition.Hosting;
7 using System.ComponentModel.Composition.Primitives;
8 using System.Linq;
9 using System.Linq.Expressions;
10 using System.Reflection;
11 using Microsoft.Internal;
ExcelFile.cs (https://bitbucket.org/kumarvvr/data-acquisition-systems.git) C# · 332 lines
NoteDetector.cs (https://gitlab.com/banana-beats/banana-beats) C# · 245 lines
NomadKernelEventRaising.cs (https://github.com/psla/Nomad.git) C# · 216 lines
1 using System;
2 using System.IO;
3 using System.Linq;
4 using Nomad.Core;
5 using Nomad.Exceptions;
6 using Nomad.KeysGenerator;
7 using Nomad.Messages;
8 using Nomad.Messages.Loading;
9 using Nomad.Modules;
10 using Nomad.Modules.Discovery;
11 using Nomad.Tests.FunctionalTests.Fixtures;
12 using Nomad.Tests.FunctionalTests.Modules;
HasManyConventionTests.cs (https://github.com/elfrostie/fluent-nhibernate.git) C# · 293 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Linq.Expressions;
5 using FluentNHibernate.Automapping.TestFixtures;
6 using FluentNHibernate.Conventions.Helpers.Builders;
7 using FluentNHibernate.Conventions.Instances;
8 using FluentNHibernate.Mapping;
9 using FluentNHibernate.MappingModel;
10 using FluentNHibernate.MappingModel.Collections;
11 using FluentNHibernate.Testing.FluentInterfaceTests;
12 using NUnit.Framework;
ExpressionTest_Lambda.cs (https://github.com/QuickJack/mono.git) C# · 285 lines
22 //
24 using System;
25 using System.Reflection;
26 using System.Linq;
27 using System.Linq.Expressions;
28 using NUnit.Framework;
30 namespace MonoTests.System.Linq.Expressions
219 [Test]
220 [Category ("NotWorking")]
221 public void LambdaPassedAsDelegateUsingParentParameter ()
222 {
223 var a = Expression.Parameter (typeof (int), "a");
IndexMerging.cs (https://github.com/fitzchak/ravendb.git) C# · 340 lines
1 using System.Collections.Generic;
2 using System.Linq;
3 using FastTests;
4 using Raven.Client.Documents.Indexes;
5 using Raven.Client.Documents.Operations.Indexes;
6 using Raven.Server.Documents.Indexes.IndexMerging;
7 using Xunit;
147 public void IndexMergeWithField()
148 {
149 using (var store = GetDocumentStore())
150 {
151 new UsersByName().Execute(store);
256 public void IndexMergeWithQueryExpressionSyntax()
257 {
258 using (var store = GetDocumentStore())
259 {
260 var byName = new IndexDefinition
MainForm.cs (http://libwp7n2012.googlecode.com/svn/trunk/) C# · 388 lines
BehaviorChain.cs (https://github.com/hartez/fubumvc.git) C# · 318 lines
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4 using System.Diagnostics;
5 using System.Linq;
6 using System.Linq.Expressions;
7 using FubuCore;
8 using FubuMVC.Core.Behaviors;
9 using FubuMVC.Core.Diagnostics.Tracing;
10 using FubuMVC.Core.Registration.ObjectGraph;
11 using FubuMVC.Core.Registration.Routes;
12 using FubuMVC.Core.Security;
RavenDB_784.cs (https://github.com/fitzchak/ravendb.git) C# · 260 lines
1 using System.Threading;
2 using Raven.Abstractions.Data;
3 using Raven.Tests.Common;
5 namespace Raven.Tests.Issues
7 using System.Collections.Generic;
8 using System.Linq;
9 using Database.Storage;
10 using Raven.Json.Linq;
11 using Xunit;
12 using Xunit.Extensions;
14 public class RavenDB_784 : RavenTest
EditableIDList.cs (https://github.com/woeishi/vvvv-sdk.git) C# · 436 lines
PermissionCheckerExtensions.cs (https://gitlab.com/chenzhuo/abpMirror) C# · 267 lines
1 using System;
2 using System.Linq;
3 using System.Threading.Tasks;
4 using Abp.Collections.Extensions;
5 using Abp.Dependency;
6 using Abp.Localization;
7 using Abp.Threading;
237 var iocManager = (permissionChecker as IIocManagerAccessor).IocManager;
238 using (var localizationManager = iocManager.ResolveAsDisposable<ILocalizationManager>())
239 {
240 return localizationManager.Object.GetString(AbpConsts.LocalizationSourceName, name);
251 var iocManager = (permissionChecker as IIocManagerAccessor).IocManager;
252 using (var localizationContext = iocManager.ResolveAsDisposable<ILocalizationContext>())
253 {
254 using (var permissionManager = iocManager.ResolveAsDisposable<IPermissionManager>())
ItemsBySetIdIndexTests.cs (https://github.com/jalchr/ravendb.git) C# · 193 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Linq.Expressions;
5 using Raven.Abstractions.Indexing;
6 using Raven.Client.Indexes;
7 using Raven.Tests.Helpers;
8 using Xunit;
15 public void CanQuery()
16 {
17 using (var store = NewDocumentStore())
18 {
19 new ItemsBySetIdIndex().Execute(store);
ICoreAmazonS3.cs (https://gitlab.com/github-cloud-corp/aws-sdk-unity) C# · 286 lines
PipelineModelBuilderTests.cs (https://github.com/MikeEast/NServiceBus.git) C# · 306 lines
ExpressionBridge.cs (https://github.com/ngbrown/AutoMapper.git) C# · 310 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Linq.Expressions;
4 using Should;
5 using Xunit;
6 using System.Linq;
8 namespace AutoMapper.UnitTests
10 namespace ExpressionBridge
11 {
12 using QueryableExtensions;
14 public class SimpleProductDto
96 public int BillOfMaterialsID { set; get; }
97 }
98 public class When_mapping_using_expressions : NonValidatingSpecBase
99 {
100 private List<Product> _products;
PackageSourcesWidget.cs (https://github.com/directhex/monodevelop.git) C# · 292 lines
1 using System;
2 using System.Collections.Generic;
3 using System.Collections.Specialized;
4 using System.Linq;
6 using Gtk;
7 using MonoDevelop.PackageManagement;
8 using MonoDevelop.Core;
9 using MonoDevelop.Components;
10 using MonoDevelop.Components.AutoTest;
11 using System.ComponentModel;
13 namespace MonoDevelop.PackageManagement
PublicIPTests.cs (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) C# · 312 lines
1 using System;
2 using System.Linq;
3 using System.Net;
4 using Newtonsoft.Json.Linq;
5 using Rackspace.Synchronous;
74 public void GetPublicIP()
75 {
76 using (var httpTest = new HttpTest())
77 {
78 Identifier id = Guid.NewGuid();
110 public void CreatePublicIP_RetriesWhenTheServerIsNotFound()
111 {
112 using (var httpTest = new HttpTest())
113 {
114 string serverId = Guid.NewGuid().ToString();
BoundingBox.cs (https://github.com/ray2006/WCell.git) C# · 433 lines
Count_Sum_Min_Max_Avg.cs (https://github.com/ccflo/mono.git) C# · 271 lines
ExpressionOptimizer.cs (https://github.com/ccflo/mono.git) C# · 237 lines
RepositorySample.cs (https://github.com/dotnetcore/Util.git) C# · 315 lines
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.ComponentModel.DataAnnotations;
5 using System.Linq;
6 using System.Linq.Expressions;
7 using System.Threading;
8 using System.Threading.Tasks;
9 using AutoMapper;
10 using Util.Domains;
11 using Util.Domains.Repositories;
13 namespace Util.Tests.Samples {