100+ results for 'List<Object> lang:C#'
Not the results you expected?
UnityServiceLocator.cs (https://github.com/tyronegroves/mvcturbine.git) C# · 292 lines
BufferedItemList.cs (https://EventScavenger.svn.codeplex.com/svn) C# · 464 lines
284 }
286 List<object> newSortedList = new List<object>( _sortedListItems.Length + additions.Length );
302 else
303 {
304 newSortedList = new List<object>( _sortedListItems );
305 }
454 private Column[] _jobSortColumns = null;
455 private Column[] _jobGroupColumns = null;
456 private List<object> _jobSortedList = null;
458 private object _lockObject = new object();
IServiceLocator.cs (https://github.com/tyronegroves/mvcturbine.git) C# · 126 lines
RegistryCore.cs (https://github.com/NovaGrid/Aurora-Sim.git) C# · 162 lines
37 /// The module interfaces available from this scene.
38 /// </value>
39 protected Dictionary<Type, List<object>> ModuleInterfaces = new Dictionary<Type, List<object>>();
41 /// <summary>
49 // m_log.DebugFormat("[SCENE BASE]: Registering interface {0}", typeof(M));
51 List<Object> l = null;
52 if (!ModuleInterfaces.TryGetValue(typeof(T), out l))
53 {
54 l = new List<Object>();
55 ModuleInterfaces.Add(typeof(T), l);
56 }
147 {
148 //Flatten the array
149 Dictionary<Type, List<object>> interfaces = new Dictionary<Type, List<object>>();
150 foreach (KeyValuePair<Type, List<object>> kvp in ModuleInterfaces)
SellerController.cs (https://hg.codeplex.com/xenta) C# · 385 lines
Injectionist.cs (https://github.com/rebus-org/Rebus.git) C# · 258 lines
Array.cs (https://bitbucket.org/mdavid/dlr.git) C# · 170 lines
JsonParser.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 409 lines
TypeVariableDefinition.cs (https://github.com/origins/WCell.git) C# · 304 lines
NotationLLSD.cs (https://github.com/kow/gridsearch.git) C# · 346 lines
org.apache.commons.collections.collection.TransformedCollection.cs (https://github.com/gadfly/nofs.git) C# · 129 lines
SymbolResolver.cs (https://github.com/kumpera/mono.git) C# · 424 lines
ServicioTestimonio.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 194 lines
ServicioFeriado.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 208 lines
DoubleDictionarys.cs (https://github.com/NovaGrid/Aurora-Sim.git) C# · 316 lines
35 public class DoubleValueDictionary<TKey, TValue1, TValue2>
36 {
37 Dictionary<TKey, List<object>> Dictionary = new Dictionary<TKey, List<object>>();
39 public void Add(TKey key, TValue1 value1, TValue2 value2)
42 throw new ArgumentException("Key is already in the dictionary");
44 List<object> Values = new List<object>(2);
45 Values.Add(value1);
46 Values.Add(value2);
63 return default(TValue1);
65 List<Object> Values = new List<object>();
66 Dictionary.TryGetValue(key, out Values);
67 return (TValue1)Values[0];
MsgPackDeserializer.cs (https://gitlab.com/Zeus_Fox/multifive-core) C# · 352 lines
46 static object UnpackArray(BinaryReader reader, int length)
47 {
48 List<object> retObject = new List<object>();
50 for (int i = 0; i < length; i++)
284 var returnByteData = remoteFunctionReference.InvokeNative(byteData);
286 var returnData = Deserialize(returnByteData) as List<object>;
288 if (returnData == null || returnData.Count == 0)
NinjectServiceLocator.cs (https://github.com/tyronegroves/mvcturbine.git) C# · 275 lines
RoutesTest.cs (https://bitbucket.org/mdavid/aspnetwebstack.git) C# · 214 lines
36 {
37 object controllerType = typeof(ItemController);
38 object expectedApiDescriptions = new List<object>
39 {
40 new { HttpMethod = HttpMethod.Get, RelativePath = "Item?name={name}&series={series}", HasRequestFormatters = false, HasResponseFormatters = true, NumberOfParameters = 2},
47 controllerType = typeof(OverloadsController);
48 expectedApiDescriptions = new List<object>
49 {
50 new { HttpMethod = HttpMethod.Get, RelativePath = "Overloads/{id}", HasRequestFormatters = false, HasResponseFormatters = true, NumberOfParameters = 1},
67 [Theory]
68 [PropertyData("VerifyDescription_OnDefaultRoute_PropertyData")]
69 public void VerifyDescription_OnDefaultRoute(Type controllerType, List<object> expectedResults)
70 {
71 HttpConfiguration config = new HttpConfiguration();
SolicitudesController.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 301 lines
61 public JsonResult CambiarEstadoSolicitud(string id_solicitud)
62 {
63 List<object> lista = new List<object>();
64 ServicioSolicitudes servicioSolicitudes = new ServicioSolicitudes();
65 SOLICITUDES solicitud = servicioSolicitudes.ObtenerPorClave(Int32.Parse(id_solicitud));
103 public JsonResult ConstanciaNotas([Bind(Prefix = "solicitud")] SOLICITUDES solicitud, FormCollection form)
104 {
105 List<object> lista = new List<object>();
106 solicitud.TIPOSOLICITUD_ID = 1; // Constancia Notas
107 solicitud.USUARIO_ID = new ServicioUsuario().ObtenerPorLogin(User.Identity.Name).USUARIO_ID;
132 public JsonResult ConstanciaEstudios([Bind(Prefix = "solicitud")] SOLICITUDES solicitud, FormCollection form)
133 {
134 List<object> lista = new List<object>();
135 solicitud.TIPOSOLICITUD_ID = 2; // Constancia Estudios
136 solicitud.USUARIO_ID = new ServicioUsuario().ObtenerPorLogin(User.Identity.Name).USUARIO_ID;
DynamicClassFixture.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 254 lines
174 {
175 var cars = singleCarQueryHandler(s);
176 var models = (IList<object>) cars["Models"];
177 Assert.That(NHibernateUtil.IsInitialized(models), Is.False);
178 Assert.That(models.Count, Is.EqualTo(2));
185 }
186 var model = list[0];
187 Assert.That(((IList<object>) ((IDictionary<string, object>) model["ProductLine"])["Models"]).Contains(model), Is.True);
188 s.Clear();
WeakListTests.cs (https://gitlab.com/sharadag/TestProject2) C# · 340 lines
39 [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
40 private void Add(WeakList<object> list, ObjectReference value)
41 {
42 list.Add(value.Strong);
52 var e = Create("E");
54 var list = new WeakList<object>();
55 Assert.Equal(0, list.TestOnly_UnderlyingArray.Length);
107 var a = Create("A");
109 var list = new WeakList<object>();
110 for (int i = 0; i < 9; i++)
111 {
LocalAccess.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 374 lines
PossibleValueSet.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 389 lines
21 private bool ContainsNull { get; set; }
22 private bool ContainsAllNonNullValues { get; set; }
23 private List<object> DistinctValues
24 {
25 get
26 {
27 if (_DistinctValues == null)
28 _DistinctValues = new List<object>();
29 return _DistinctValues;
30 }
31 }
32 private List<object> _DistinctValues;
34 private bool ContainsAnyNonNullValues
HQLQueryPlan.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 256 lines
SonarrImport.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 131 lines
UnityEngine_Vector3_Binding.cs (https://github.com/yukuyoulei/ILRuntime_HotGames.git) C# · 220 lines
52 }
54 static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject* ptr_of_this_method, IList<object> __mStack, ref UnityEngine.Vector3 instance_of_this_method)
55 {
56 ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
98 }
100 static StackObject* get_zero_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
101 {
102 ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
109 }
111 static StackObject* Equals_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
112 {
113 ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
org.apache.commons.collections.list.UnmodifiableList.cs (https://github.com/gadfly/nofs.git) C# · 144 lines
47 * @throws IllegalArgumentException if list is null
48 */
49 public static java.util.List<Object> decorate(java.util.List<Object> list)
50 {
51 if (list is Unmodifiable)
63 * @throws IllegalArgumentException if list is null
64 */
65 private UnmodifiableList(java.util.List<Object> list)
66 : base(list)
67 {
135 }
137 public override java.util.List<Object> subList(int fromIndex, int toIndex)
138 {
139 java.util.List<Object> sub = getList().subList(fromIndex, toIndex);
JavaScriptReader.cs (https://github.com/iainlane/mono.git) C# · 342 lines
EventListeners.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 640 lines
InvalidBuiltInTypes.cs (https://github.com/StyleCop/StyleCop.git) C# · 343 lines
ArrayList.cs (https://gitlab.com/Pfhoenix/api) C# · 640 lines
22 public class ArrayList : IList
23 {
24 private readonly IList<object> list;
25 private readonly bool isFixedSize;
26 private readonly bool isReadOnly;
31 /// </summary>
32 public ArrayList() :
33 this(new ArrayList<object>(), false, false, false)
34 {
35 }
39 /// </summary>
40 public ArrayList(ICollection source)
41 : this(new ArrayList<object>((source != null) ? source.Count : 0), false, false, false)
42 {
43 if (source == null)
XamlNameResolver.cs (https://github.com/iainlane/mono.git) C# · 170 lines
DictProxy.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 346 lines
Format.cs (https://github.com/actions/runner.git) C# · 298 lines
BlittableJsonTraverser.cs (https://github.com/fitzchak/ravendb.git) C# · 302 lines
206 var propCount = nested.Count;
207 var prop = new BlittableJsonReaderObject.PropertyDetails();
208 List<object> results = null;
209 leftPath = path; // note that we assume identical sturcutre of all values in this document
210 void AddItemToResults(object i)
211 {
212 if (results == null)
213 results = new List<object>();
214 results.Add(i);
215 }
ConfigurableBootstrapper.cs (https://github.com/factormystic/Nancy.git) C# · 982 lines
20 public class ConfigurableBootstrapper : NancyBootstrapperWithRequestContainerBase<TinyIoCContainer>
21 {
22 private readonly List<object> registeredTypes;
23 private readonly List<InstanceRegistration> registeredInstances;
24 private readonly NancyInternalConfiguration configuration;
40 {
41 this.configuration = NancyInternalConfiguration.Default;
42 this.registeredTypes = new List<object>();
43 this.registeredInstances = new List<InstanceRegistration>();
FindByCommand.cs (https://github.com/tcartwright/Simple.Data.git) C# · 67 lines
IInputMethodManager.cs (https://bitbucket.org/festevezga/xobotos.git) C# · 537 lines
23 [Sharpen.Stub]
24 java.util.List<object> getShortcutInputMethodsAndSubtypes();
26 [Sharpen.Stub]
200 [Sharpen.Stub]
201 [Sharpen.ImplementsInterface(@"com.android.internal.view.IInputMethodManager")]
202 public virtual java.util.List<object> getShortcutInputMethodsAndSubtypes()
203 {
204 throw new System.NotImplementedException();
479 ();
481 public abstract java.util.List<object> getShortcutInputMethodsAndSubtypes();
483 public abstract void hideMySoftInput(android.os.IBinder arg1, int arg2);
ExpressionProcessor.cs (https://github.com/whut/nhibernate-core.git) C# · 835 lines
154 RegisterCustomMethodCall(() => RestrictionExtensions.IsInsensitiveLike("", "", null), RestrictionExtensions.ProcessIsInsensitiveLikeMatchMode);
155 RegisterCustomMethodCall(() => RestrictionExtensions.IsIn(null, new object[0]), RestrictionExtensions.ProcessIsInArray);
156 RegisterCustomMethodCall(() => RestrictionExtensions.IsIn(null, new List<object>()), RestrictionExtensions.ProcessIsInCollection);
157 RegisterCustomMethodCall(() => RestrictionExtensions.IsBetween(null, null).And(null), RestrictionExtensions.ProcessIsBetween);
JsonFactory.cs (https://gitlab.com/Ontology/OntoWebCore) C# · 327 lines
ResourceManager.ResourceLoader.LoadResourceTaskBase.cs (https://github.com/EllanJiang/GameFramework.git) C# · 188 lines
24 private string[] m_DependencyAssetNames;
25 private object m_UserData;
26 private readonly List<object> m_DependencyAssets;
27 private ResourceObject m_ResourceObject;
28 private DateTime m_StartTime;
36 m_DependencyAssetNames = null;
37 m_UserData = null;
38 m_DependencyAssets = new List<object>();
39 m_ResourceObject = null;
40 m_StartTime = default(DateTime);
146 }
148 public List<object> GetDependencyAssets()
149 {
150 return m_DependencyAssets;
JsonMultiDimensionalArrayConverter.cs (https://github.com/jalchr/ravendb.git) C# · 197 lines
86 /// <param name="elementType">The element type</param>
87 /// <returns></returns>
88 private List<object> ReadRank(JsonReader reader, JsonSerializer serializer, Type elementType)
89 {
90 var retVal = new List<object>();
112 /// <param name="arrayList">The list to process</param>
113 /// <returns></returns>
114 private List<int> GetRankLengthList(List<object> arrayList)
115 {
116 var retVal = new List<int>();
119 if (arrayList.Count > 0)
120 {
121 var childArrayList = arrayList[0] as List<object>;
122 // If there are more children arrays, there are more ranks
123 // Retrieve them and add to results
PatchConflict.cs (https://github.com/fitzchak/ravendb.git) C# · 69 lines
PropertySerializer.cs (https://bitbucket.org/mdavid/dday-ical-svn.git) C# · 149 lines
StateMachineValidationErrorSourceLocator.cs (https://github.com/pruiz/mono.git) C# · 152 lines
12 internal class StateMachineValidationErrorSourceLocator : IValidationErrorSourceLocator
13 {
14 public List<object> FindSourceDetailFromActivity(Activity errorSource, object errorSourceDetail)
15 {
16 if (errorSourceDetail == null)
17 {
18 return new List<object> { errorSource };
19 }
20 else
70 private static List<object> FindDescendentFromStateMachine(StateMachine machine, object descendent)
71 {
72 List<object> path = new List<object>();
73 path.Add(machine);
74 foreach (State state in machine.States)
BindingListTest.cs (https://github.com/t-ashula/mono.git) C# · 699 lines
223 public void TestAllowEditEvent ()
224 {
225 BindingList<object> l = new BindingList<object>();
227 bool event_raised = false;
253 public void TestAllowRemove ()
254 {
255 BindingList<object> l = new BindingList<object>();
257 bool event_raised = false;
503 public void TestAddNew_EndDifferentIndexThenCancel ()
504 {
505 BindingList<object> l = new BindingList<object>();
507 bool adding_event_raised = false;
Connection.cs (https://github.com/einari/SignalR.git) C# · 149 lines
UnityEngine_Vector3_Binding.cs (https://github.com/Viagi/LandlordsCore.git) C# · 155 lines
43 }
45 static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject* ptr_of_this_method, IList<object> __mStack, ref UnityEngine.Vector3 instance_of_this_method)
46 {
47 ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
124 }
126 static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
127 {
128 ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
Indexable.cs (https://bitbucket.org/mdavid/dlr.git) C# · 663 lines
MemberHelper.cs (https://bitbucket.org/mdavid/aspnetwebstack.git) C# · 381 lines
160 // Attach handler, call method, assert fires once
161 List<object> eventHandlerArgs = new List<object>();
162 EventHandler<TEventArgs> handler = new EventHandler<TEventArgs>(delegate(object sender, TEventArgs t)
163 {
171 // Detach handler, call method, assert not fired
172 eventHandlerArgs = new List<object>();
173 eventInfo.RemoveEventHandler(instance, handler);
174 methodInfo.Invoke(instance, new object[] { eventArgs });
MixinDataTestCase.cs (https://github.com/mirajavora/Castle.Core-READONLY.git) C# · 196 lines
39 {
40 MixinData mixinData = new MixinData(new object[] {simpleMixin});
41 List<object> mixins = new List<object>(mixinData.Mixins);
42 Assert.AreEqual(1, mixins.Count);
43 Assert.AreSame(simpleMixin, mixins[0]);
56 {
57 MixinData mixinData = new MixinData(new object[] {new object()});
58 List<object> mixins = new List<object>(mixinData.Mixins);
59 Assert.AreEqual(0, mixins.Count);
60 }
64 {
65 MixinData mixinData1 = new MixinData(new object[] {simpleMixin, otherMixin});
66 List<object> mixins1 = new List<object>(mixinData1.Mixins);
67 Assert.AreEqual(2, mixins1.Count);
68 Assert.AreSame(otherMixin, mixins1[0]);
LocalAccess.cs (https://github.com/dotnet/runtime.git) C# · 465 lines
XpandASPxGridListEditor.cs (https://bitbucket.org/expand/expand.git) C# · 186 lines
IAnnotatable.cs (https://github.com/jfcantin/monodevelop.git) C# · 231 lines
86 protected object annotations;
88 sealed class AnnotationList : List<object>, ICloneable
89 {
90 // There are two uses for this custom list type:
91 // 1) it's private, and thus (unlike List<object>) cannot be confused with real annotations
92 // 2) It allows us to simplify the cloning logic by making the list behave the same as a clonable annotation.
93 public AnnotationList (int initialCapacity) : base(initialCapacity)
ExpressionObserverTests_Property.cs (https://gitlab.com/kush/Avalonia) C# · 643 lines
155 var data = new { Foo = default(Class1) };
156 var target = ExpressionObserver.Create(data, o => o.Foo.Foo.Length);
157 var result = new List<object>();
159 target.Subscribe(x => result.Add(x));
177 var data = new Class1 { Foo = "foo" };
178 var target = ExpressionObserver.Create(data, o => o.Foo);
179 var result = new List<object>();
181 var sub = target.Subscribe(x => result.Add(x));
196 var data = new Class1 { Bar = "foo" };
197 var target = ExpressionObserver.Create(data, o => o.Bar);
198 var result = new List<object>();
200 var sub = target.Subscribe(x => result.Add(x));
SVGParser.cs (https://gitlab.com/wyattgable/Turtle_Time) C# · 697 lines
InteractiveModule.cs (https://github.com/csainty/Nancy.git) C# · 152 lines
Timer.cs (https://github.com/UbitUmarov/Ubit-opensim.git) C# · 176 lines
DotNetObject.cs (https://code.google.com/p/s-sharp/) C# · 246 lines
38 }
40 public object Expand(IList<object> args) {
41 return Expand(args, false);
42 }
46 /// When called from the Set macro, isSetter should be true and a setter will be returned instead of a value.
47 /// </summary>
48 public object Expand(IList<object> args, bool isSetter) {
49 if (args.Count != 1) {
50 throw new SyntaxError(".Net object expects one argument, given " + args.Count);
ListenerList.cs (https://javapi.svn.codeplex.com/svn) C# · 216 lines
WhereClauseHandler.cs (https://github.com/marcusoftnet/Simple.Data.git) C# · 171 lines
Dev.cs (https://github.com/crookookoo/handUI.git) C# · 187 lines
27 private class DevElementInfo {
28 public List<object> targets;
29 public DevElement element;
30 }
65 private static void rebuildCategoryMap() {
66 _categories.Clear();
67 var typeMap = new Dictionary<Type, KeyValuePair<List<object>, List<DevElement>>>();
69 foreach (var reg in _registered) {
73 KeyValuePair<List<object>, List<DevElement>> pair;
74 if (!typeMap.TryGetValue(obj.GetType(), out pair)) {
75 pair = new KeyValuePair<List<object>, List<DevElement>>(new List<object>(), elements);
76 typeMap[obj.GetType()] = pair;
77 }
ParseHelper.cs (https://bitbucket.org/aermakov/angryoldlady.git) C# · 138 lines
SqlStringHelper.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 167 lines
HibernateDataContext.cs (https://github.com/DavidMoore/Foundation.git) C# · 204 lines
MyDictionary.cs (https://bitbucket.org/henderea/popupmultibox.git) C# · 515 lines
MessageProperties.cs (https://github.com/pruiz/mono.git) C# · 891 lines
PersistencePipeline.cs (https://github.com/pruiz/mono.git) C# · 567 lines
243 List<XName> keys;
244 List<object> values;
246 public ValueDictionaryView(IDictionary<XName, InstanceValue> basis, bool writeOnly)
268 if (this.values == null)
269 {
270 this.values = new List<object>(this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Value.Value));
271 }
272 return this.values;
StandardFilters.cs (https://github.com/RevCBH/dotliquid.git) C# · 567 lines
261 #endif
262 {
263 List<object> ary;
264 if (input is IEnumerable)
265 ary = ((IEnumerable) input).Flatten().Cast<object>().ToList();
266 else
267 ary = new List<object>(new[] { input });
268 if (!ary.Any())
269 return ary;
287 public static IEnumerable Map(IEnumerable input, string property)
288 {
289 List<object> ary = input.Cast<object>().ToList();
290 if (!ary.Any())
291 return ary;
MapMainForm.cs (https://EpiInfo.svn.codeplex.com/svn) C# · 188 lines
52 }
54 List<object> mapControl_DataSourceRequested()
55 {
56 Epi.Windows.Dialogs.BaseReadDialog dlg = new Dialogs.BaseReadDialog();
57 if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
58 {
59 List<object> resultsArray = new List<object>();
60 resultsArray.Add(dlg.SelectedDataSource);
61 resultsArray.Add(dlg.SelectedDataMember);
Baz.cs (https://github.com/whut/nhibernate-core.git) C# · 456 lines
34 private IDictionary<string, Glarch> _stringGlarchMap;
35 private IDictionary<object, object> _anyToAny;
36 private IList<object> _manyToAny;
37 private ISet<FooProxy> _fooSet;
38 private ISet<string> _stringSet;
219 /// Get/set for manyToAny
220 /// </summary>
221 public IList<object> ManyToAny
222 {
223 get { return this._manyToAny; }
UPnPServerControllerServiceProxy.cs (https://github.com/Thorsten1982/MediaPortal-2.git) C# · 79 lines
42 {
43 CpAction action = GetAction("IsClientAttached");
44 IList<object> outParams = action.InvokeAction(new List<object> {clientSystemId});
45 return (bool) outParams[0];
46 }
61 {
62 CpAction action = GetAction("GetAttachedClients");
63 IList<object> outParams = action.InvokeAction(new List<object> {});
64 return (ICollection<MPClientMetadata>) outParams[0];
65 }
68 {
69 CpAction action = GetAction("GetSystemNameForSystemId");
70 IList<object> outParams = action.InvokeAction(new List<object> {systemId});
71 string hostName = (string) outParams[0];
72 if (string.IsNullOrEmpty(hostName))
ExpandoObjectConverter.cs (https://github.com/yswenli/SAEA.git) C# · 165 lines
ClientRealProxy.cs (https://github.com/t-ashula/mono.git) C# · 142 lines
ScriptRuntimeSetup.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 208 lines
30 // host specification:
31 private Type _hostType;
32 private IList<object> _hostArguments;
34 // languages available in the runtime:
114 /// </summary>
115 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
116 public IList<object> HostArguments {
117 get {
118 return _hostArguments;
NHExtensions.cs (https://github.com/lundbeck/n2cms.git) C# · 156 lines
ListViewAnimationService.cs (https://github.com/telerik/UI-For-UWP.git) C# · 323 lines
20 internal class ListViewAnimationService : ServiceBase<RadListView>
21 {
22 private readonly List<object> scheduledItemsForAnimation = new List<object>();
23 private readonly Dictionary<RadAnimation, Tuple<object, Action<object>>> runningAnimations = new Dictionary<RadAnimation, Tuple<object, Action<object>>>();
24 private readonly List<IAnimated> scheduledModelsForRecycle = new List<IAnimated>();
ParserHelper.cs (https://github.com/Thorsten1982/MediaPortal-2.git) C# · 117 lines
QueryCommand.cs (https://github.com/nathanb/SubSonic-2.0.git) C# · 477 lines
183 ///
184 /// </summary>
185 public List<object> OutputValues;
187 private QueryParameterCollection parameters;
199 CommandType = CommandType.Text;
200 parameters = new QueryParameterCollection();
201 OutputValues = new List<object>();
202 }
215 CommandType = CommandType.Text;
216 parameters = new QueryParameterCollection();
217 OutputValues = new List<object>();
218 }
FIMPSResource.cs
(https://hg01.codeplex.com/fimpscmdlets)
C# · 253 lines
✨ Summary
This C# code defines a class FIMPSResource
that represents a FIM resource object as a PowerShell object. It provides methods to access and modify attribute values, including adding, removing, and setting values for multi-valued attributes. The class also tracks changes made to the resource using an associated RmResourceChanges
object.
This C# code defines a class FIMPSResource
that represents a FIM resource object as a PowerShell object. It provides methods to access and modify attribute values, including adding, removing, and setting values for multi-valued attributes. The class also tracks changes made to the resource using an associated RmResourceChanges
object.
ServicioPrecioProducto.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 215 lines
ExpressionToInlineValue.cs (https://github.com/urasandesu/NTroll.git) C# · 195 lines
IError.cs (https://github.com/ChilliCream/hotchocolate.git) C# · 223 lines
ServicioCorrelativo.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 216 lines
ArrayType.cs (https://github.com/whut/nhibernate-core.git) C# · 165 lines
IgnoreNull.cs (https://github.com/JasonTrue/MvcContrib.git) C# · 98 lines
MapReduceJob.cs (https://github.com/DIanbi/lokad-cloud.git) C# · 131 lines
FactoryProvider.cs (https://gitlab.com/ChicK00o/JaneiousTests) C# · 321 lines
27 }
29 public abstract IEnumerator<List<object>> GetAllInstancesWithInjectSplit(
30 InjectContext context, List<TypeValuePair> args);
46 }
48 public override IEnumerator<List<object>> GetAllInstancesWithInjectSplit(
49 InjectContext context, List<TypeValuePair> args)
50 {
67 // We assume here that we are creating a user-defined factory so there's
68 // nothing else we can validate here
69 yield return new List<object>() { new ValidationMarker(typeof(TValue)) };
70 }
71 else
ORMSession.cs (https://bitbucket.org/mrajoelisolo/ormframework-mkii-core.git) C# · 283 lines
22 }
24 public List<Object> CreateQuery(Type entityType)
25 {
26 return CreateQuery(entityType, "", null);
39 public List<Object> CreateQuery(Type entityType, string where, List<ORMParameter> parameters, string orderBy)
40 {
41 List<Object> res = new List<Object>();
43 ORMEntity entity = ORMSchemaBrowser.Instance.GetEntitySchema(m_Entities, entityType);
246 public List<Object> ExecuteNonQuery(string query)
247 {
248 List<Object> res = new List<Object>();
250 IDBConnection cnx = ORMConnectionFactory.Instance.GetConnection(m_Config);
ClassEmitterTestCase.cs (https://github.com/mirajavora/Castle.Core-READONLY.git) C# · 173 lines
36 public void AutomaticDefaultConstructorGenerationWithClosedGenericType()
37 {
38 ClassEmitter emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "Foo", typeof (List<object>),
39 Type.EmptyTypes);
40 Type t = emitter.BuildType();
45 public void StaticMethodArguments()
46 {
47 ClassEmitter emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "Foo", typeof (List<object>),
48 Type.EmptyTypes);
49 MethodEmitter methodEmitter = emitter.CreateMethod("StaticMethod", MethodAttributes.Public | MethodAttributes.Static,
57 public void InstanceMethodArguments()
58 {
59 ClassEmitter emitter = new ClassEmitter(generator.ProxyBuilder.ModuleScope, "Foo", typeof (List<object>),
60 Type.EmptyTypes);
61 MethodEmitter methodEmitter = emitter.CreateMethod("InstanceMethod", MethodAttributes.Public,
GenerateVariableTests.cs (https://gitlab.com/sharadag/Roslyn) C# · 1245 lines
MenuManager.cs (https://git01.codeplex.com/signum) C# · 177 lines
MessageBoxWindow.xaml.cs (https://github.com/JosefNemec/Playnite.git) C# · 360 lines
DependencyResolverTests.cs (https://bitbucket.org/mdavid/aspnetwebstack.git) C# · 219 lines
133 IHttpActionSelector actionSelector = new Mock<IHttpActionSelector>().Object;
134 userResolverMock.Setup(ur => ur.GetService(typeof(IHttpActionSelector))).Returns(actionSelector).Verifiable();
135 userResolverMock.Setup(ur => ur.GetServices(typeof(IHttpActionSelector))).Returns(new List<object> { actionSelector }).Verifiable();
137 resolver.SetResolver(userResolverMock.Object);
165 IHttpActionSelector actionSelector = new Mock<IHttpActionSelector>().Object;
166 userResolverMock.Setup(ur => ur.GetInstance(typeof(IHttpActionSelector))).Returns(actionSelector).Verifiable();
167 userResolverMock.Setup(ur => ur.GetAllInstances(typeof(IHttpActionSelector))).Returns(new List<object> { actionSelector }).Verifiable();
169 resolver.SetResolver(userResolverMock.Object);
205 IHttpActionSelector actionSelector = new Mock<IHttpActionSelector>().Object;
207 resolver.SetResolver(_ => actionSelector, _ => new List<object> { actionSelector });
209 // Act
RouteConstraintsTest.cs (https://bitbucket.org/mdavid/aspnetwebstack.git) C# · 116 lines
15 {
16 object controllerType = typeof(ItemController);
17 object expectedApiDescriptions = new List<object>
18 {
19 new { HttpMethod = HttpMethod.Get, RelativePath = "Item?name={name}&series={series}", HasRequestFormatters = false, HasResponseFormatters = true, NumberOfParameters = 2},
24 controllerType = typeof(OverloadsController);
25 expectedApiDescriptions = new List<object>
26 {
27 new { HttpMethod = HttpMethod.Get, RelativePath = "Overloads/{id}", HasRequestFormatters = false, HasResponseFormatters = true, NumberOfParameters = 1},
40 [Theory]
41 [PropertyData("HttpMethodConstraints_LimitsTheDescriptions_PropertyData")]
42 public void HttpMethodConstraints_LimitsTheDescriptions(Type controllerType, List<object> expectedResults)
43 {
44 HttpConfiguration config = new HttpConfiguration();
ExpressionBuilder.cs (https://github.com/jorgemuza/MefContrib.git) C# · 154 lines
31 protected ExpressionBuilder()
32 {
33 this.MemberValues = new Dictionary<MemberInfo, List<object>>();
34 }
36 private IDictionary<MemberInfo, List<object>> MemberValues { get; set; }
38 /// <summary>
75 }
77 private static void SetCollectionValue(MemberInfo member, object instance, List<object> value)
78 {
79 const BindingFlags bindingFlags =