100+ results for 'List<Object> lang:C#'

Not the results you expected?

UnityServiceLocator.cs (https://github.com/tyronegroves/mvcturbine.git) C# · 292 lines

39 public IUnityContainer Container { private set; get; }

40

41 public IList<object> ResolveServices(Type type) {

42 return new List<object>(Container.ResolveAll(type));

BufferedItemList.cs (https://EventScavenger.svn.codeplex.com/svn) C# · 464 lines

284 }

285

286 List<object> newSortedList = new List<object>( _sortedListItems.Length + additions.Length );

287

288

302 else

303 {

304 newSortedList = new List<object>( _sortedListItems );

305 }

306

454 private Column[] _jobSortColumns = null;

455 private Column[] _jobGroupColumns = null;

456 private List<object> _jobSortedList = null;

457

458 private object _lockObject = new object();

IServiceLocator.cs (https://github.com/tyronegroves/mvcturbine.git) C# · 126 lines

48 IList<T> ResolveServices<T>() where T : class;

49

50 IList<object> ResolveServices(Type type);

51

52 /// <summary>

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>>();

40

41 /// <summary>

49 // m_log.DebugFormat("[SCENE BASE]: Registering interface {0}", typeof(M));

50

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

272 DisclosureLevel = "Base"

273 });

274 var data = new List<Object>();

275

276 foreach(var i in m.Items)

306 Count = 10

307 });

308 var data = new List<Object>();

309

310 foreach(var i in m.Items)

329 DisclosureLevel = "Base"

330 });

331 var data = new List<Object>();

332

333 foreach(var i in m.Items)

Injectionist.cs (https://github.com/rebus-org/Rebus.git) C# · 258 lines

182 readonly Action<Type> _serviceTypeRequested;

183 readonly Dictionary<Type, object> _instances = new Dictionary<Type, object>();

184 readonly List<object> _resolvedInstances = new List<object>();

185

186 public ResolutionContext(Dictionary<Type, Handler> resolvers, Action<Type> serviceTypeRequested)

Array.cs (https://bitbucket.org/mdavid/dlr.git) C# · 170 lines

150 INativeType elemType = ElementType;

151 int dimensions = 1;

152 List<object> shape = new List<object>();

153 shape.Add((BigInteger)__len__());

154 while (elemType is ArrayType) {

JsonParser.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 409 lines

93 private List<object> ParseArray()

94 {

95 List<object> array = new List<object>();

96 #else

97 private ArrayList ParseArray()

TypeVariableDefinition.cs (https://github.com/origins/WCell.git) C# · 304 lines

200 {

201 //collection = (IList)Activator.CreateInstance(varType);

202 collection = new List<object>();

203 ReadCollection(reader, collection);

204 var arr = Array.CreateInstance(m_collectionType, collection.Count);

NotationLLSD.cs (https://github.com/kow/gridsearch.git) C# · 346 lines

105

106 int pos = 0;

107 List<object> array = new List<object>();

108

109 while (notationData[pos] != ']')

org.apache.commons.collections.collection.TransformedCollection.cs (https://github.com/gadfly/nofs.git) C# · 129 lines

106 protected virtual java.util.Collection<Object> transform(java.util.Collection<Object> coll)

107 {

108 java.util.List<Object> list = new java.util.ArrayList<Object>(coll.size());

109 for (java.util.Iterator<Object> it = coll.iterator(); it.hasNext(); )

110 {

RESTTemplateClient.cs (https://bitbucket.org/coalvilledave/templateronline.git) C# · 192 lines

19 public string Parse(string templateName, object model)

20 {

21 return Parse(templateName, new List<object>() { model }).First();

22 }

23

53 public string ParseTemplate(string templateBody, object model)

54 {

55 return ParseTemplate(templateBody, new List<object>() { model }).First();

56 }

57

SymbolResolver.cs (https://github.com/kumpera/mono.git) C# · 424 lines

40 get

41 {

42 List<object> values = new List<object>(this.symbols.Count);

43

44 foreach (ExternalLocationReference reference in this.symbols.Values)

ServicioTestimonio.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 194 lines

51 public List<object> Eliminar(decimal testimonio)

52 {

53 List<object> lista = new List<object>();

54 try

55 {

ServicioFeriado.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 208 lines

64 public List<object> Eliminar(decimal id)

65 {

66 List<object> lista = new List<object>();

67 try

68 {

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>>();

38

39 public void Add(TKey key, TValue1 value1, TValue2 value2)

42 throw new ArgumentException("Key is already in the dictionary");

43

44 List<object> Values = new List<object>(2);

45 Values.Add(value1);

46 Values.Add(value2);

63 return default(TValue1);

64

65 List<Object> Values = new List<object>();

66 Dictionary.TryGetValue(key, out Values);

67 return (TValue1)Values[0];

RaiseEventMethodGenerator.cs (https://bitbucket.org/anicolaspp/monodevelop.git) C# · 139 lines

99 }

100

101 protected override IEnumerable<string> GenerateCode (List<object> includedMembers)

102 {

103 foreach (IMember member in includedMembers) {

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>();

49

50 for (int i = 0; i < length; i++)

284 var returnByteData = remoteFunctionReference.InvokeNative(byteData);

285

286 var returnData = Deserialize(returnByteData) as List<object>;

287

288 if (returnData == null || returnData.Count == 0)

NinjectServiceLocator.cs (https://github.com/tyronegroves/mvcturbine.git) C# · 275 lines

40 public IKernel Container { get; private set; }

41

42 public IList<object> ResolveServices(Type type) {

43 return Container.GetAll(type).ToList();

44 }

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},

46

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();

189

WeakListTests.cs (https://gitlab.com/sharadag/TestProject2) C# · 340 lines

38

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");

53

54 var list = new WeakList<object>();

55 Assert.Equal(0, list.TestOnly_UnderlyingArray.Length);

56

107 var a = Create("A");

108

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

39 }

40

41 public override string ToDebugString(int instructionIndex, object cookie, Func<int, int> labelIndexer, IList<object> objects) {

42 return cookie == null ?

43 InstructionName + "(" + _index + ")" :

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;

33

34 private bool ContainsAnyNonNullValues

HQLQueryPlan.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 256 lines

108 }

109

110 IList combinedResults = results ?? new List<object>();

111 var distinction = new HashSet<object>(ReferenceComparer<object>.Instance);

112 int includedCount = -1;

SonarrImport.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 131 lines

68 return new

69 {

70 devices = new List<object>()

71 };

72 }

UnityEngine_Vector3_Binding.cs (https://github.com/yukuyoulei/ILRuntime_HotGames.git) C# · 220 lines

52 }

53

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 }

99

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 }

110

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 }

136

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

41 case '[':

42 ReadChar ();

43 var list = new List<object> ();

44 SkipSpaces ();

45 if (PeekChar () == ']') {

EventListeners.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 640 lines

14 public class EventListeners

15 {

16 private readonly List<object> initializedListeners = new List<object>();

17

18 private static readonly IDictionary<ListenerType, System.Type> eventInterfaceFromType =

InvalidBuiltInTypes.cs (https://github.com/StyleCop/StyleCop.git) C# · 343 lines

18 #region Implemented interfaces on a class or interface

19

20 public class Class2 : Class1, IList<Object>

21 {

22 }

199 public delegate Dictionary<decimal, List<List<Decimal>>> Delegate5();

200

201 public event EventHandler<Dictionary<Object, List<List<object>>>> Event5;

202 }

203

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

51

52 Dictionary<string,NamedObject> objects = new Dictionary<string,NamedObject> ();

53 List<object> referenced = new List<object> ();

54

55 [MonoTODO]

DictProxy.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 346 lines

189 }

190

191 return new List<object>(res);

192 }

193 }

199 ICollection IDictionary.Values {

200 get {

201 List<object> res = new List<object>();

202 foreach (KeyValuePair<object, object> kvp in _dt.GetMemberDictionary(DefaultContext.Default, false)) {

203 res.Add(kvp.Value);

Format.cs (https://github.com/actions/runner.git) C# · 298 lines

275 private readonly MemoryCounter m_counter;

276 private readonly Format m_node;

277 private readonly List<Object> m_segments = new List<Object>();

278 }

279

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>();

44

FindByCommand.cs (https://github.com/tcartwright/Simple.Data.git) C# · 67 lines

41 }

42

43 private static IDictionary<string, object> CreateCriteriaDictionary(InvokeMemberBinder binder, IList<object> args)

44 {

45 IDictionary<string, object> criteriaDictionary = null;

IInputMethodManager.cs (https://bitbucket.org/festevezga/xobotos.git) C# · 537 lines

22

23 [Sharpen.Stub]

24 java.util.List<object> getShortcutInputMethodsAndSubtypes();

25

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 ();

480

481 public abstract java.util.List<object> getShortcutInputMethodsAndSubtypes();

482

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);

158

JsonFactory.cs (https://gitlab.com/Ontology/OntoWebCore) C# · 327 lines

22 private string currentNameSpace;

23

24 public clsOntologyItem CreateJsonFileOfItemList(Type itemType, List<object> itemList, SessionFile sessionFile)

25 {

26 var result = logStates.LogState_Success.Clone();

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 }

147

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

12 {

13 private readonly DocumentDatabase _database;

14 private readonly List<object> _docs = new List<object>();

15 private readonly DocumentConflict _fstDocumentConflict;

16 private readonly bool _hasTombstone;

PropertySerializer.cs (https://bitbucket.org/mdavid/dday-ical-svn.git) C# · 149 lines

44

45 // Build a list of values that are to be serialized.

46 List<object> objs = new List<object>();

47 if (!(prop.Value is string) &&

48 !(typeof(IEnumerable<string>).IsAssignableFrom(serializedType)) &&

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>();

226

227 bool event_raised = false;

253 public void TestAllowRemove ()

254 {

255 BindingList<object> l = new BindingList<object>();

256

257 bool event_raised = false;

503 public void TestAddNew_EndDifferentIndexThenCancel ()

504 {

505 BindingList<object> l = new BindingList<object>();

506

507 bool adding_event_raised = false;

Connection.cs (https://github.com/einari/SignalR.git) C# · 149 lines

98 }

99

100 private List<object> ProcessResults(IList<Message> source)

101 {

102 var messageValues = new List<object>();

UnityEngine_Vector3_Binding.cs (https://github.com/Viagi/LandlordsCore.git) C# · 155 lines

43 }

44

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 }

125

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;

InvokeAzureComputeMethodCmdlet.cs (https://gitlab.com/jslee1/azure-powershell) C# · 252 lines

34 protected static object[] ConvertDynamicParameters(RuntimeDefinedParameterDictionary parameters)

35 {

36 List<object> paramList = new List<object>();

37

38 foreach (var param in parameters)

Indexable.cs (https://bitbucket.org/mdavid/dlr.git) C# · 663 lines

216

217 public class IndexableList : IList {

218 List<object> myList = new List<object>();

219

220 public object this[string index] {

MemberHelper.cs (https://bitbucket.org/mdavid/aspnetwebstack.git) C# · 381 lines

159

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 {

170

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

24 }

25

26 public override string ToDebugString(int instructionIndex, object? cookie, Func<int, int> labelIndexer, IReadOnlyList<object>? objects)

27 {

28 return cookie == null ?

XpandASPxGridListEditor.cs (https://bitbucket.org/expand/expand.git) C# · 186 lines

149 return gridViewDataColumnWithInfo;

150 }

151 public override void SetControlSelectedObjects(IList<object> objects) {

152 if (!MasterDetail || objects.Count != 1) {

153 base.SetControlSelectedObjects(objects);

IAnnotatable.cs (https://github.com/jfcantin/monodevelop.git) C# · 231 lines

86 protected object annotations;

87

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>();

158

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>();

180

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>();

199

200 var sub = target.Subscribe(x => result.Add(x));

SVGParser.cs (https://gitlab.com/wyattgable/Turtle_Time) C# · 697 lines

390 }

391

392 public void GetElementList(List<object> elementList, SVGPaintable paintable, SVGTransformList summaryTransformList)

393 {

394 bool exitFlag = false;

InteractiveModule.cs (https://github.com/csainty/Nancy.git) C# · 152 lines

120 private static object[] GetArguments(InteractiveDiagnosticMethod method, dynamic query)

121 {

122 var arguments = new List<object>();

123

124 foreach (var argument in method.Arguments)

Timer.cs (https://github.com/UbitUmarov/Ubit-opensim.git) C# · 176 lines

135 public Object[] GetSerializationData(UUID itemID)

136 {

137 List<Object> data = new List<Object>();

138

139 lock (TimerListLock)

DotNetObject.cs (https://code.google.com/p/s-sharp/) C# · 246 lines

38 }

39

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

174 }

175

176 private static java.util.ArrayList<Object> getOnlySerializable(java.util.ArrayList<T> list)

177 {

178 if (list == null)

181 }

182

183 java.util.ArrayList<Object> result = new java.util.ArrayList<Object>();

184 for (java.util.Iterator<T> it = list.iterator(); it.hasNext(); )

185 {

WhereClauseHandler.cs (https://github.com/marcusoftnet/Simple.Data.git) C# · 171 lines

119 }

120

121 private IList<object> Resolve(IDictionary<string, object> dict, object operand, string key = null)

122 {

123 var objectReference = operand as ObjectReference;

Dev.cs (https://github.com/crookookoo/handUI.git) C# · 187 lines

26

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>>>();

68

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 }

CollectionConstraints.cs (https://github.com/antonsamarsky/emitmapper-tools.git) C# · 608 lines

190 {

191 // Internal list used to track occurences

192 private List<object> list = new List<object>();

193

194 private NUnitEqualityComparer comparer;

293 protected override bool doMatch(IEnumerable actual)

294 {

295 List<object> list = new List<object>();

296

297 foreach (object o1 in actual)

ParseHelper.cs (https://bitbucket.org/aermakov/angryoldlady.git) C# · 138 lines

82 Type targetType = IsNullableType(propertyType) ? Nullable.GetUnderlyingType(propertyType) : propertyType;

83

84 if (propertyVal is List<object>)

85 {

86 var list = (List<object>) propertyVal;

SqlStringHelper.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 167 lines

31 }

32

33 internal static SqlString JoinParts(object separator, IList<object> parts)

34 {

35 if (parts.Count == 0)

HibernateDataContext.cs (https://github.com/DavidMoore/Foundation.git) C# · 204 lines

14 public class HibernateDataContext : IUpdatable

15 {

16 readonly List<object> entityToRemove = new List<object>();

17 readonly List<object> entityToUpdate = new List<object>();

MyDictionary.cs (https://bitbucket.org/henderea/popupmultibox.git) C# · 515 lines

232 get

233 {

234 List<object> lst = new List<object>(0);

235 foreach (MyDictionary d in dict.Values)

236 {

MessageProperties.cs (https://github.com/pruiz/mono.git) C# · 891 lines

228 if (disposed)

229 ThrowDisposed();

230 List<object> values = new List<object>();

231

232 if ((object)via != null)

PersistencePipeline.cs (https://github.com/pruiz/mono.git) C# · 567 lines

242

243 List<XName> keys;

244 List<object> values;

245

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 }

53

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

89 private object ReadList(JsonReader reader)

90 {

91 IList<object> list = new List<object>();

92

93 while (reader.Read())

ClientRealProxy.cs (https://github.com/t-ashula/mono.git) C# · 142 lines

103 object [] pl;

104 MethodBase method = null;

105 List<object> outArgs = null;

106 object ret;

107 if (inmsg.MethodBase.Equals (od.SyncMethod)) {

ScriptRuntimeSetup.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 208 lines

30 // host specification:

31 private Type _hostType;

32 private IList<object> _hostArguments;

33

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

140 if (properties.Length == 1)

141 return crit.SetProjection(projection)

142 .List<object>()

143 .Select(col => new Dictionary<string, object>() { { properties[0], col } });

144

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

57 public static object[] ParseIndexExpression(IParserContext context, string expression)

58 {

59 IList<object> indices = new List<object>();

60 string[] indexStrings = expression.Split(new char[] {','});

61 foreach (string s in indexStrings)

QueryCommand.cs (https://github.com/nathanb/SubSonic-2.0.git) C# · 477 lines

183 ///

184 /// </summary>

185 public List<object> OutputValues;

186

187 private QueryParameterCollection parameters;

199 CommandType = CommandType.Text;

200 parameters = new QueryParameterCollection();

201 OutputValues = new List<object>();

202 }

203

215 CommandType = CommandType.Text;

216 parameters = new QueryParameterCollection();

217 OutputValues = new List<object>();

218 }

219

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.

113 if (_session.Client.Schema.IsMultiValued(resourceAttributeName))

114 {

115 List<object> listOfValues = new List<object>(resourceValue.Values.Count);

116 foreach (RmAttributeValue rmValue in resourceValue.Values)

117 {

ServicioPrecioProducto.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 215 lines

52 public List<object> Eliminar(decimal id)

53 {

54 List<object> lista = new List<object>();

55 try

56 {

94 public List<object> Eliminar(string setid, string inv_item_id, DateTime fecha_efectiva)

95 {

96 List<object> lista = new List<object>();

97 try

98 {

ExpressionToInlineValue.cs (https://github.com/urasandesu/NTroll.git) C# · 195 lines

144 static ReadOnlyCollection<object> ConvertArguments(ReadOnlyCollection<Expression> exps, State state)

145 {

146 var arguments = new List<object>();

147 foreach (var exp in exps)

148 {

IError.cs (https://github.com/ChilliCream/hotchocolate.git) C# · 223 lines

110 /// but with the specified <paramref name="path" />.

111 /// </returns>

112 IError WithPath(IReadOnlyList<object>? path);

113

114 /// <summary>

ServicioCorrelativo.cs (https://gitlab.com/oscarsalazarsevilla/ITELCA) C# · 216 lines

50 public List<object> Eliminar(decimal id)

51 {

52 List<object> lista = new List<object>();

53 return lista;

54 //try

ArrayType.cs (https://github.com/whut/nhibernate-core.git) C# · 165 lines

154 Array array = (Array) value;

155 int length = array.Length;

156 IList list = new List<object>(length);

157 IType elemType = GetElementType(factory);

158 for (int i = 0; i < length; i++)

IgnoreNull.cs (https://github.com/JasonTrue/MvcContrib.git) C# · 98 lines

75 private static object[] GetParameterArray(object[] parameters, object obj)

76 {

77 return new List<object>(parameters) {obj}.ToArray();

78 }

79

SQLQueryReturnProcessor.cs (https://github.com/RogerKratz/nhibernate-core.git) C# · 410 lines

288 public IList GenerateCustomReturns(bool queryHadAliases)

289 {

290 IList customReturns = new List<object>();

291 IDictionary<string, object> customReturnsByAlias = new Dictionary<string, object>();

292 for (int i = 0; i < queryReturns.Length; i++)

MapReduceJob.cs (https://github.com/DIanbi/lokad-cloud.git) C# · 131 lines

73

74 var blobSet = new MapReduceBlobSet(_blobStorage, _queueStorage);

75 blobSet.GenerateBlobSets(_jobName, new List<object>(from i in items select (object)i), functions, workerCount, typeof(TMapIn), typeof(TMapOut));

76 _itemsPushed = true;

77

FactoryProvider.cs (https://gitlab.com/ChicK00o/JaneiousTests) C# · 321 lines

27 }

28

29 public abstract IEnumerator<List<object>> GetAllInstancesWithInjectSplit(

30 InjectContext context, List<TypeValuePair> args);

31

46 }

47

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 }

23

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>();

42

43 ORMEntity entity = ORMSchemaBrowser.Instance.GetEntitySchema(m_Entities, entityType);

246 public List<Object> ExecuteNonQuery(string query)

247 {

248 List<Object> res = new List<Object>();

249

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

358 await TestAsync(

359 @"class Class { void Method<T>(IList<T> t) { [|foo|] = t; } }",

360 @"class Class { private IList<object> foo; void Method<T>(IList<T> t) { foo = t; } }");

361 }

362

MenuManager.cs (https://git01.codeplex.com/signum) C# · 177 lines

133 Dictionary<string, string> dic = new Dictionary<string, string>();

134

135 List<object> queryNames = Server.Return((IDynamicQueryServer s)=>s.GetQueryNames());

136

137 string menuItems = queryNames.ToString(o => GetMenuItem(o, dic), "\r\n");

MessageBoxWindow.xaml.cs (https://github.com/JosefNemec/Playnite.git) C# · 360 lines

267 string caption,

268 MessageBoxImage icon,

269 List<object> options,

270 List<string> optionsTitles)

271 {

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();

136

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();

168

169 resolver.SetResolver(userResolverMock.Object);

205 IHttpActionSelector actionSelector = new Mock<IHttpActionSelector>().Object;

206

207 resolver.SetResolver(_ => actionSelector, _ => new List<object> { actionSelector });

208

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},

23

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 }

35

36 private IDictionary<MemberInfo, List<object>> MemberValues { get; set; }

37

38 /// <summary>

75 }

76

77 private static void SetCollectionValue(MemberInfo member, object instance, List<object> value)

78 {

79 const BindingFlags bindingFlags =