100+ results for 'foreach lang:c#'

Not the results you expected?

Document.cs (https://gitlab.com/justbediego/Isaap) C# · 596 lines

460 Message = "تصویر مدرک دکترا وارد نشده است"

461 };

462 foreach (var certification in SafetyCertifications)

463 if (certification.CertificationScan_ID == null)

464 return new CompletionStatus()

HttpListenerWebSocketContext.cs (https://gitlab.com/OriumVR/websocket-sharp) C# · 331 lines

227 var protocols = _context.Request.Headers["Sec-WebSocket-Protocol"];

228 if (protocols != null)

229 foreach (var protocol in protocols.Split (','))

230 yield return protocol.Trim ();

231 }

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

135 public void StatusLineParserAcceptsStandardStatusCodes()

136 {

137 foreach (HttpStatusCode status in HttpUnitTestDataSets.AllHttpStatusCodes)

138 {

139 byte[] data = CreateBuffer("HTTP/1.1", ((int)status).ToString(), "Reason");

159 public void StatusLineParserAcceptsCustomStatusCodes()

160 {

161 foreach (HttpStatusCode status in HttpUnitTestDataSets.CustomHttpStatusCodes)

162 {

163 byte[] data = CreateBuffer("HTTP/1.1", ((int)status).ToString(), "Reason");

183 public void StatusLineParserRejectsInvalidStatusCodes()

184 {

185 foreach (string invalidStatus in ParserData.InvalidStatusCodes)

186 {

187 byte[] data = CreateBuffer("HTTP/1.1", invalidStatus, "Reason");

ProteinDataBankFile.cs (https://github.com/AnthonyNystrom/NuGenBioChem.git) C# · 241 lines

100 void Parse(IEnumerable<string> pdbLines)

101 {

102 foreach (string pdbLine in pdbLines)

103 {

104 if (pdbLine.StartsWith("REMARK"))

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

55 return null;

56 List<ResultItem> ritms = new List<ResultItem>(0);

57 foreach (BookmarkItem itm in itms)

58 {

59 try

268 {

269 string name2 = name.ToLower();

270 foreach (BookmarkItem itm in items)

271 {

272 if (itm.Name.ToLower().Equals(name2))

305 string[] lines = Filesystem.FileReadAllLines(Filesystem.UserProfile + "\\Popup Multibox\\bookmarks.txt");

306 items.Clear();

307 foreach (string line in lines)

308 {

309 BookmarkItem tmp = BookmarkItem.FromFileString(line);

HttpUri.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 270 lines

110 if (Query.IsNotNullOrWhiteSpace())

111 {

112 foreach (var pair in Query.Split('&'))

113 {

114 var split = pair.Split(new[] { '=' }, 2);

195 builder.Append(Query);

196

197 foreach (var pair in queryParams)

198 {

199 if (builder.Length != 0)

UnitTestingWindow.cs (https://bitbucket.org/createdbyx/codefarts.unitytesting.git) C# · 260 lines

143 var setValues = new Action<bool>(value =>

144 {

145 foreach (var model in this.testModels)

146 {

147 foreach (var item in model.Value)

157 if (GUILayout.Button(local.Get("Expand")))

158 {

159 foreach (var item in this.testModels)

160 {

161 item.Key.Expanded = true;

165 if (GUILayout.Button(local.Get("Collapse")))

166 {

167 foreach (var item in this.testModels)

168 {

169 item.Key.Expanded = false;

ValueProviderDictionary.cs (https://github.com/acken/mono.git) C# · 208 lines

132 if (form != null) {

133 string[] keys = form.AllKeys;

134 foreach (string key in keys) {

135 string[] rawValue = form.GetValues(key);

136 string attemptedValue = form[key];

142 RouteValueDictionary routeValues = ControllerContext.RouteData.Values;

143 if (routeValues != null) {

144 foreach (var kvp in routeValues) {

145 string key = kvp.Key;

146 object rawValue = kvp.Value;

154 if (queryString != null) {

155 string[] keys = queryString.AllKeys;

156 foreach (string key in keys) {

157 string[] rawValue = queryString.GetValues(key);

158 string attemptedValue = queryString[key];

CommandExecute.cs (https://github.com/magicdict/MagicMongoDBTool.git) C# · 464 lines

153 {command, mongoCol.Name}

154 };

155 foreach (var item in extendInfo.Elements)

156 {

157 executeCommand.Add(item);

TwoTestClassesInDifferentNamespacesTestFixture.cs (https://github.com/eusebiu/SharpDevelop.git) C# · 282 lines

140

141 ExtTreeNode newTestClassNode = null;

142 foreach (ExtTreeNode node in testsNamespaceNode.Nodes) {

143 if (node.Text == "MyNewTestFixture") {

144 newTestClassNode = node;

182

183 ExtTreeNode testClassNode = null;

184 foreach (ExtTreeNode node in testsNamespaceNode.Nodes) {

185 if (node.Text == "MyTestFixture") {

186 testClassNode = node;

217

218 ExtTreeNode testClassNode = null;

219 foreach (ExtTreeNode node in testsNamespaceNode.Nodes) {

220 if (node.Text == "MyTestFixture") {

221 testClassNode = node;

SIP_t_AcceptRange.cs (https://github.com/prasad83/inbox2_desktop.git) C# · 232 lines

135 StringBuilder retVal = new StringBuilder();

136 retVal.Append(m_MediaType);

137 foreach(SIP_Parameter parameter in m_pMediaParameters){

138 if(parameter.Value != null){

139 retVal.Append(";" + parameter.Name + "=" + parameter.Value);

143 }

144 }

145 foreach(SIP_Parameter parameter in m_pParameters){

146 if(parameter.Value != null){

147 retVal.Append(";" + parameter.Name + "=" + parameter.Value);

RavenDB-5256.cs (https://github.com/fitzchak/ravendb.git) C# · 376 lines

112 //using (var session = documentStore.OpenSession())

113 //{

114 // foreach (var user in users)

115 // {

116 // session.Store(user);

117 // }

118 // foreach (var userRole in userRoles)

119 // {

120 // session.Store(userRole);

132 // var userRolesFromDb = session.Load<UserRole>(roleIds.Cast<ValueType>());

133

134 // foreach (var key in keys)

135 // {

136 // Assert.True(session.Advanced.IsLoaded(key));

BezierCurve.cs (https://github.com/White-Wolf/Minesharp.git) C# · 262 lines

207 int i = 0;

208

209 foreach (Vector2 pt in points)

210 {

211 temp = (float)Functions.BinomialCoefficient(points.Count - 1, i) * (float)(System.Math.Pow(t, i) *

243 int i = 0;

244

245 foreach (Vector2 pt in points)

246 {

247 temp = (float)Functions.BinomialCoefficient(points.Count - 2, i) * (float)(System.Math.Pow(t, i) *

ltablib.cs (https://github.com/cadahl/kopilua.git) C# · 298 lines

17 private static int aux_getn(lua_State L, int n) {luaL_checktype(L, n, LUA_TTABLE); return luaL_getn(L, n);}

18

19 private static int foreachi (lua_State L) {

20 int i;

21 int n = aux_getn(L, 1);

34

35

36 private static int _foreach (lua_State L) {

37 luaL_checktype(L, 1, LUA_TTABLE);

38 luaL_checktype(L, 2, LUA_TFUNCTION);

278 private readonly static luaL_Reg[] tab_funcs = {

279 new luaL_Reg("concat", tconcat),

280 new luaL_Reg("foreach", _foreach),

281 new luaL_Reg("foreachi", foreachi),

ArrayScript.cs (https://gitlab.com/smurmann/KDUProjects) C# · 322 lines

154 openList.Add(start);

155

156 foreach (Node i in nodeArray)

157 {

158 i.previousNode = null;

172 // Debug.Log("OpenList Count: " + openList.Count);

173 Node tempNode = null;

174 foreach (Node lowest in openList)

175 {

176 if(method == SearchMethod.Dijkstra)

232 tempNode.neighbourNodes.Add(nodeArray[tempNode.X, tempNode.Y + 1]);

233

234 foreach (Node v in tempNode.neighbourNodes)

235 {

236 if (unvisitedNodes.IndexOf(v) > -1 && v.currentState != NodeScript.TileState.Obstacle)

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

192 public override int GetHashCode() {

193 int res = 6551;

194 foreach (MemberInfo mi in _members) {

195 res ^= res << 5 ^ mi.DeclaringType.GetHashCode() ^ mi.MetadataToken;

196 }

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

123 }

124 if (_iterators != null) {

125 foreach (ComprehensionIterator ci in _iterators) {

126 ci.Walk(walker);

127 }

180 }

181 if (_iterators != null) {

182 foreach (ComprehensionIterator ci in _iterators) {

183 ci.Walk(walker);

184 }

246 }

247 if (_iterators != null) {

248 foreach (ComprehensionIterator ci in _iterators) {

249 ci.Walk(walker);

250 }

ComAdapter.cs (https://gitlab.com/unofficial-mirrors/PowerShell) C# · 328 lines

43 {

44 yield return GetComTypeName(_comTypeInfo.Clsid);

45 foreach (string baseType in GetDotNetTypeNameHierarchy(obj))

46 {

47 yield return baseType;

105 if (lookingForProperties || lookingForParameterizedProperties)

106 {

107 foreach (ComProperty prop in _comTypeInfo.Properties.Values)

108 {

109 if (prop.IsParameterized)

125 if (lookingForMethods)

126 {

127 foreach (ComMethod method in _comTypeInfo.Methods.Values)

128 {

129 if (collection[method.Name] == null)

ExportEngine.cs (https://github.com/krazana/eXpand.git) C# · 148 lines

22 xDocument.Add(root);

23 _serializeClassInfoGraphNodesCalculator =new SerializeClassInfoGraphNodesCalculator(serializationConfigurationGroup);

24 foreach (var baseObject in baseCollection) {

25 IEnumerable<IClassInfoGraphNode> serializedClassInfoGraphNodes =

26 _serializeClassInfoGraphNodesCalculator.GetSerializedClassInfoGraphNodes(baseObject);

39 serializedObjectElement.Add(new XAttribute("type", selectedObject.GetType().Name));

40 root.Add(serializedObjectElement);

41 foreach (var classInfoGraphNode in serializedClassInfoGraphNodes.Where(node => node.SerializationStrategy!=SerializationStrategy.DoNotSerialize)) {

42 XElement propertyElement = GetPropertyElement(serializedObjectElement, classInfoGraphNode);

43 switch (classInfoGraphNode.NodeType) {

94 if (memberInfo != null) {

95 var theObjects = (IEnumerable)memberInfo.GetValue(selectedObject);

96 foreach (XPBaseObject theObject in theObjects) {

97 CreateRefElelement(classInfoGraphNode,theObject.GetType().Name, root, theObject, propertyElement);

98 }

ConventionPartCreator.cs (https://github.com/jorgemuza/MefContrib.git) C# · 213 lines

103 var importDefinitionsFromConvention = new List<ImportDefinition>();

104

105 foreach (var importConvention in importConventions)

106 {

107 foreach (var member in importConvention.Members.Invoke(type))

NonReflectiveBinderFixture.cs (https://github.com/wickedshimmy/nhibernate-core.git) C# · 198 lines

50 Assert.That(values[2], Is.EqualTo("Foo.BogusVisitor"));

51

52 foreach (var element in cm.PropertyIterator)

53 {

54 var ma = element.MetaAttributes;

MultiGetProfiling.cs (https://github.com/etishor/ravendb.git) C# · 266 lines

42 var responses = JsonConvert.DeserializeObject<GetResponse[]>(profilingInformation.Requests[0].Result);

43 Assert.Equal(3, responses.Length);

44 foreach (var response in responses)

45 {

46 Assert.Equal(404, response.Status);

FormatterExpression.cs (https://github.com/ramaboya/AutoMapper.git) C# · 227 lines

101 if (context.PropertyMap != null)

102 {

103 foreach (IValueFormatter formatter in context.PropertyMap.GetFormatters())

104 {

105 yield return formatter;

110 if (!context.PropertyMap.FormattersToSkipContains(typeSpecificFormatterConfig.GetType()))

111 {

112 foreach (var typeSpecificFormatter in typeSpecificFormatterConfig.GetFormattersToApply(context))

113 {

114 yield return typeSpecificFormatter;

119 else if (GetTypeSpecificFormatters().TryGetValue(valueType, out typeSpecificFormatterConfig))

120 {

121 foreach (var typeSpecificFormatter in typeSpecificFormatterConfig.GetFormattersToApply(context))

122 {

123 yield return typeSpecificFormatter;

CredentialManager.cs (https://gitlab.com/CORP-RESELLER/sdk-core-dotnet) C# · 219 lines

64 private Account GetAccount(Dictionary<string, string> config, string apiUserName)

65 {

66 foreach (KeyValuePair<string, string> kvPair in config)

67 {

68 //logger.Info(kvPair.Key + " " + kvPair.Value);

CmdFill.cs (https://github.com/cazzar/MCaznowl-Lava.git) C# · 255 lines

126 }

127

128 foreach (Pos pos in buffer)

129 {

130 p.level.Blockchange(p, pos.x, pos.y, pos.z, cpos.type);

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

102 var inspectedLocations = new List<string>();

103

104 foreach (var convention in conventions)

105 {

106 try

132 IDictionary<string, object> results = expandoObject;

133

134 foreach (var propertyInfo in source.GetType().GetProperties())

135 {

136 results[propertyInfo.Name] = propertyInfo.GetValue(source, null);

FeedModel.cs (https://bitbucket.org/azzlack/eyecatch.umbraco.rssfeedgenerator.git) C# · 236 lines

194 }

195

196 foreach (var descendant in descendants)

197 {

198 var item = new FeedItem()

MemoryDynamicGraph.cs (https://bitbucket.org/tscheinpflug/osmsharp.git) C# · 277 lines

199 List<KeyValuePair<uint, EdgeData>> arcs_list =

200 new List<KeyValuePair<uint, EdgeData>>(arcs);

201 foreach (KeyValuePair<uint, EdgeData> arc in arcs)

202 {

203 if (arc.Key == to)

245 return false;

246 }

247 foreach(KeyValuePair<uint, EdgeData> arc in _vertices[vertex])

248 {

249 if (arc.Key == neighbour)

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

377 {

378 PossibleValueSet result = new PossibleValueSet(expressionType);

379 foreach (var v in values)

380 {

381 if (v == null)

KeyConfigMenu.cs (https://github.com/SsSanzo/BombEISTIv2.git) C# · 241 lines

55 }

56 }

57 foreach (var img in MenuDataList)

58 {

59 _wizard.Grid.Children.Add(img.Value);

60 }

61 foreach (var lab in MenuLabelList)

62 {

63 _wizard.Grid.Children.Add(lab.Value);

175 }

176 }

177 foreach (var img in MenuDataList)

178 {

179 _wizard.Grid.Children.Add(img.Value);

InternalStateMachineModifier.cs (https://github.com/MassTransit/Automatonymous.git) C# · 243 lines

29 .ToArray();

30

31 foreach (var builder in uncommittedActivities)

32 builder.CommitActivities();

33 }

X509AttrCertStoreSelector.cs (https://bitbucket.org/festevezga/socketex.git) C# · 376 lines

358 if (names != null)

359 {

360 foreach (object o in names)

361 {

362 if (o is GeneralName)

LayoutStoreWorker.cs (https://github.com/vansickle/dbexplorer.git) C# · 241 lines

183 {

184 if (stores != null)

185 foreach (ILayoutDataStore store in stores)

186 {

187 store.SetUI4LoadDefault(this);

CommandMemberUsagePrinter.cs (https://github.com/NtreevSoft/CommandLineParser.git) C# · 316 lines

114 writer.Indent++;

115

116 foreach (var item in query)

117 {

118 if (line != string.Empty)

154 writer.WriteLine(Resources.Requirements);

155 writer.Indent++;

156 foreach (var item in items)

157 {

158 this.PrintRequirement(writer, item);

185 writer.WriteLine(Resources.Options);

186 writer.Indent++;

187 foreach (var item in items)

188 {

189 this.PrintOption(writer, item);

VisibleComponent.cs (https://github.com/trullock/MuonLab.Web.Xhtml.git) C# · 309 lines

275 var builder = new StringBuilder();

276

277 foreach (var part in renderingOrder)

278 {

279 switch (part)

Program.cs (https://github.com/mauriciocirelli/MonoGame-Samples.git) C# · 185 lines

71 Console.WriteLine("Sending list of " + registeredHosts.Count + " hosts to client " + msg.SenderEndpoint);

72 string appid = msg.ReadString();

73 foreach (AvailableGame g1 in registeredHosts.Values)

74 {

75 if (g1.Game == appid)

98

99 // find in list

100 foreach (AvailableGame elist in registeredHosts.Values)

101 {

102 if (elist.ExternalIP.Equals(hostExternal))

GMLWriter.cs (https://github.com/maxm/osmuy.git) C# · 368 lines

79 protected void Write(ICoordinate[] coordinates, XmlTextWriter writer)

80 {

81 foreach (ICoordinate coord in coordinates)

82 Write(coord, writer);

83 }

288 {

289 int count = InitValue;

290 foreach (IGeometry g in geometryCollection.Geometries)

291 count += SetByteStreamLength(g);

292 return count;

301 {

302 int count = InitValue;

303 foreach (IPolygon p in multiPolygon.Geometries)

304 count += SetByteStreamLength(p);

305 return count;

aiCameraVector.cs (https://github.com/Akranar/daguerreo.git) C# · 348 lines

48 if (c == null)

49 throw new ArgumentNullException("c");

50 foreach (aiCamera element in c) {

51 this.Add(element);

52 }

PropertiesToMethodMapper.cs (https://github.com/elfrostie/ncqrs.git) C# · 230 lines

139 var result = new List<Tuple<MethodBase, PropertyInfo[]>>();

140

141 foreach (var method in potentialTargets)

142 {

143 var parameters = method.GetParameters();

HoaDonBLL.cs (https://bitbucket.org/nguyenngoc/project_ptudweb.git) C# · 356 lines

182 return -1;

183 long MaHD = hoadon.Last().MaHD;

184 foreach (var item in sp)

185 {

186 ProductBLL pro = new ProductBLL();

300 }

301 );

302 foreach (var item in tks1.ToList())

303 {

304 StatisticParts sta = new StatisticParts();

321 }

322 );

323 foreach (var item in tks2.ToList())

324 {

325 StatisticParts sta = new StatisticParts();

KeyInputUtilTest.cs (https://github.com/insaneisnotfree/VsVim.git) C# · 275 lines

24 public void CoreCharList1()

25 {

26 foreach (var cur in CharsAll)

27 {

28 CollectionAssert.Contains(KeyInputUtil.VimKeyCharList, cur);

33 public void CharToKeyInput_LowerLetters()

34 {

35 foreach (var cur in CharsLettersLower)

36 {

37 var ki = KeyInputUtil.CharToKeyInput(cur);

48 public void CharToKeyInput_UpperLetters()

49 {

50 foreach (var cur in CharsLettersUpper)

51 {

52 var ki = KeyInputUtil.CharToKeyInput(cur);

PurchasesController.cs (https://gitlab.com/Andersonrm28/Ecomerce) C# · 239 lines

201 using (var transaction = db.Database.BeginTransaction())

202 {

203 foreach (var item in purchaseDetails)

204 {

205 var inventorie = db.Inventories.Where(i => i.WarehouseId == purchase.WarehouseId && i.ProductId == item.ProductId).FirstOrDefault();

DelegateUtils.cs (https://gitlab.com/godotengine/godot) C# · 395 lines

29 var multiCastData = new Collections.Array();

30

31 foreach (Delegate oneDelegate in invocationList)

32 someDelegatesSerialized |= TrySerializeDelegate(oneDelegate, multiCastData);

33

113 writer.Write(fields.Length);

114

115 foreach (FieldInfo field in fields)

116 {

117 Type fieldType = field.GetType();

230 var delegates = new List<Delegate>(serializedData.Count);

231

232 foreach (object elem in serializedData)

233 {

234 if (elem is Collections.Array multiCastData)

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

94 Assert.Equal(mediaType1, mediaType2, comparer);

95

96 foreach (string parameter in parameters)

97 {

98 mediaType1 = new MediaTypeHeaderValue("text/xml");

123 MediaTypeHeaderValueEqualityComparer comparer = MediaTypeHeaderValueEqualityComparer.EqualityComparer;

124

125 foreach (string parameter in parameters)

126 {

127 MediaTypeHeaderValue mediaType1 = MediaTypeHeaderValue.Parse("text/xml" + parameter);

DicomMatch.cs (https://github.com/charlescrichton/mdcm.git) C# · 400 lines

63 public bool Match(DcmDataset dataset) {

64 if (_operator == DicomMatchOperator.Or) {

65 foreach (IDicomMatchRule rule in _rules)

66 if (rule.Match(dataset))

67 return true;

70 }

71 else {

72 foreach (IDicomMatchRule rule in _rules)

73 if (!rule.Match(dataset))

74 return false;

80 public override string ToString() {

81 StringBuilder sb = new StringBuilder();

82 foreach (IDicomMatchRule rule in _rules) {

83 if (rule is DicomMatch)

84 sb.AppendLine("(((").AppendLine(rule.ToString()).AppendLine(")))");

FeatureDependencyTests.cs (https://github.com/MikeEast/NServiceBus.git) C# · 360 lines

58 var dependingFeature = setup.DependingFeature;

59 featureSettings.Add(dependingFeature);

60 Array.ForEach(setup.AvailableFeatures, featureSettings.Add);

61

62 featureSettings.SetupFeatures(new FakeFeatureConfigurationContext());

PersistentArrayHolder.cs (https://github.com/enjoii/WCell.git) C# · 353 lines

196 array = System.Array.CreateInstance(elementClass, tempList.Count);

197 int index = 0;

198 foreach (object element in tempList)

199 {

200 array.SetValue(element, index);

BellmanFordShortestPathAlgorithm.cs (https://github.com/rhishi/QuickGraph.git) C# · 248 lines

175 // init color, distance

176 this.VertexColors.Clear();

177 foreach (var u in VisitedGraph.Vertices)

178 {

179 this.VertexColors[u] = GraphColor.White;

184 TVertex root;

185 if (!this.TryGetRootVertex(out root))

186 foreach (var v in this.VisitedGraph.Vertices)

187 {

188 root = v;

207 {

208 bool atLeastOneTreeEdge = false;

209 foreach (var e in this.VisitedGraph.Edges)

210 {

211 this.OnExamineEdge(e);

TagNodeList.cs (https://github.com/StevilKnevil/Substrate.git) C# · 264 lines

79 {

80 TagNodeList list = new TagNodeList(_type);

81 foreach (TagNode item in _items) {

82 list.Add(item.Copy());

83 }

InfraredFrameSource.cs (https://gitlab.com/IOException/KinectGame) C# · 289 lines

120 var objThis = Helper.NativeObjectCache.GetObject<InfraredFrameSource>(pNative);

121 var args = new Windows.Kinect.FrameCapturedEventArgs(result);

122 foreach(var func in callbackList)

123 {

124 Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });

181 var objThis = Helper.NativeObjectCache.GetObject<InfraredFrameSource>(pNative);

182 var args = new Windows.Data.PropertyChangedEventArgs(result);

183 foreach(var func in callbackList)

184 {

185 Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });

TabControlTests.cs (https://gitlab.com/kush/Avalonia) C# · 332 lines

308 target.Presenter.ApplyTemplate();

309

310 foreach (var tabItem in target.GetLogicalChildren().OfType<TabItem>())

311 {

312 tabItem.Template = TabItemTemplate();

ExpressionLevel.cs (https://github.com/karsten-wolfert/sones.git) C# · 274 lines

181 {

182 //the node already exist, so update its edges

183 foreach (var aBackwardEdge in expressionNode.BackwardEdges)

184 {

185 _Content[levelKey].Nodes[node].AddBackwardEdges(aBackwardEdge.Value);

186 }

187

188 foreach (var aForwardsEdge in expressionNode.ForwardEdges)

189 {

190 _Content[levelKey].Nodes[node].AddForwardEdges(aForwardsEdge.Value);

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

212 private static IEnumerable UrlPathSafeList() {

213

214 foreach (var c in UrlParameterSafeList()) {

215 yield return c;

216 }

Party.cs (https://github.com/mauriciocirelli/MonoGame-Samples.git) C# · 364 lines

72

73 // add the player's inventory items

74 foreach (ContentEntry<Gear> contentEntry in player.Inventory)

75 {

76 AddToInventory(contentEntry.Content, contentEntry.Count);

97

98 List<Player> leveledUpPlayers = null;

99 foreach (Player player in players)

100 {

101 int oldLevel = player.CharacterLevel;

299

300 // load the players

301 foreach (string contentName in gameStartDescription.PlayerContentNames)

302 {

303 JoinParty(contentManager.Load<Player>(

Default.aspx.cs (https://bitbucket.org/kudutest2/kenticogit.git) C# · 428 lines

158 {

159 // Loop through the individual items

160 foreach (DataRow categoryDr in categories.Tables[0].Rows)

161 {

162 // Create object from DataRow

266 {

267 // Loop through the individual items

268 foreach (DataRow groupDr in groups.Tables[0].Rows)

269 {

270 // Create object from DataRow

376 {

377 // Loop through the individual items

378 foreach (DataRow keyDr in keys.Tables[0].Rows)

379 {

380 // Create object from DataRow

PgpPublicKeyRingBundle.cs (https://bitbucket.org/festevezga/socketex.git) C# · 280 lines

48 this.order = Platform.CreateArrayList();

49

50 foreach (object obj in e)

51 {

52 PgpPublicKeyRing pgpPub = obj as PgpPublicKeyRing;

118 }

119

120 foreach (PgpPublicKeyRing pubRing in GetKeyRings())

121 {

122 foreach (string nextUserID in pubRing.GetPublicKey().GetUserIds())

153 long keyId)

154 {

155 foreach (PgpPublicKeyRing pubRing in GetKeyRings())

156 {

157 PgpPublicKey pub = pubRing.GetPublicKey(keyId);

Constraints.cs (https://github.com/sillsdev/FieldWorks.git) C# · 513 lines

68 public override bool Eval(object val)

69 {

70 foreach (object o in inList)

71 {

72 if (o.Equals(ExtractActualValue(val)))

83 {

84 StringBuilder builder = new StringBuilder("IN ");

85 foreach (object o in inList)

86 {

87 builder.Append('<');

311 StringBuilder result = new StringBuilder();

312 bool lastWasSpace = true;

313 foreach(char c in s)

314 {

315 if (Char.IsWhiteSpace(c))

DescribeReservedInstancesOfferingsRequest.cs (https://bitbucket.org/mdavid/aws-sdk-for-net.git) C# · 301 lines

75 public DescribeReservedInstancesOfferingsRequest WithReservedInstancesId(params string[] list)

76 {

77 foreach (string item in list)

78 {

79 ReservedInstancesId.Add(item);

219 public DescribeReservedInstancesOfferingsRequest WithFilter(params Filter[] list)

220 {

221 foreach (Filter item in list)

222 {

223 Filter.Add(item);

condition.cs (https://github.com/abhishek-kumar/AIGA.git) C# · 232 lines

157 {

158 string name = this.templateNode.Attributes[0].Value;

159 foreach (XmlNode childLINode in this.templateNode.ChildNodes)

160 {

161 if (childLINode.Name.ToLower() == "li")

183 else if (this.templateNode.Attributes.Count == 0) // multi-predicate

184 {

185 foreach (XmlNode childLINode in this.templateNode.ChildNodes)

186 {

187 if (childLINode.Name.ToLower() == "li")

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

223 public void Foreach (Type type, out CodeExpression item, CodeExpression array)

224 {

225 CodeForeach cfe = new CodeForeach (array, type);

226 item = cfe.ItemExpression;

227 currentBlock.Add (cfe);

229 }

230

231 public void EndForeach ()

232 {

233 CodeBlock block = PopBlock ();

234 CodeForeach cif = currentBlock.GetLastItem () as CodeForeach;

235

236 if (cif == null || cif.ForBlock != null)

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

123 int baseActionCount = actionCount;

124

125 foreach (BinderMappingInfo comboInfo in combo.Binders) {

126 List<ParameterMappingInfo> newInfo = new List<ParameterMappingInfo>();

127

128 foreach (ParameterMappingInfo info in comboInfo.MappingInfo) {

129 if (info.IsParameter) {

130 // all of the inputs from the child now become ours

EndpointPermission.cs (https://github.com/ccflo/mono.git) C# · 349 lines

129 // a bit dubious... should they all be a subset or is one

130 // enough in this case?

131 foreach (IPAddress addr in this.addresses)

132 if (IsSubsetOf (addr.ToString (), perm.hostname))

133 return true;

138 // a bit dubious... should they all be a subset or is one

139 // enough in this case?

140 foreach (IPAddress addr in perm.addresses)

141 if (IsSubsetOf (this.hostname, addr.ToString ()))

142 return true;

QueryPlanCache.cs (https://github.com/Kengutoudegou/nhibernate-core.git) C# · 309 lines

164 IDictionary<string, NamedParameterDescriptor> namedParamDescriptorMap = new Dictionary<string, NamedParameterDescriptor>();

165

166 foreach (KeyValuePair<string, ParamLocationRecognizer.NamedParameterDescription> entry in recognizer.NamedParameterDescriptionMap)

167 {

168 string name = entry.Key;

SpellBook.cs (https://bitbucket.org/arcanosteam/arcanos.git) C# · 357 lines

56 GlobalCooldown = 0;

57 }

58 foreach (KeyValuePair<int, CooldownInstance> pair in Cooldowns)

59 if (pair.Value.Left > 0)

60 {

148 public override void InterruptAuras(InterruptMask interrupt)

149 {

150 foreach (AuraBase aura in AppliedAuras)

151 if (aura.Spell.IsAuraInterruptedBy(interrupt))

152 RemoveAura(aura);

299 }

300

301 foreach (Aura aura in GetAuras(proc))

302 {

303 if (R.Float() <= aura.Effect.FloatValue1)

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

42 {

43 this.OrderByIndex = orderToken.SqlIndex;

44 foreach (var order in ParseOrderDefinitions(tokenEnum))

45 {

46 _orders.Add(order);

300 }

301

302 foreach (var column in _columns)

303 {

304 if (columnNameOrIndex.Equals(column.Name, StringComparison.InvariantCultureIgnoreCase)

315 var sqlLength = (endToken != null ? endToken.SqlIndex + endToken.Length : Sql.Length) - beginToken.SqlIndex;

316 var text = Sql.ToString(sqlIndex, sqlLength);

317 foreach (var column in _columns)

318 {

319 if (text.Equals(column.Name, StringComparison.InvariantCultureIgnoreCase) ||

Comment.cs (https://github.com/AnthonyNystrom/GenXSource.git) C# · 292 lines

79

80 // Send notification email to all members participating in the thread

81 foreach (DataRow row in targetMembers.Tables[0].Rows)

82 {

83 // if the posting member is also found in target member.skip

HttpInputItem.cs (https://github.com/cienesdi/MediaPortal-2.git) C# · 299 lines

48 public HttpInputItem(HttpInputItem item)

49 {

50 foreach (KeyValuePair<string, HttpInputItem> pair in item._items)

51 _items.Add(pair.Key, pair.Value);

52

53 foreach (string value in item._values)

54 _values.Add(value);

55

172 {

173 temp += '=';

174 foreach (string value in _values)

175 temp += value + ',';

176 temp = temp.Remove(temp.Length - 1, 1);

Email.cs (https://github.com/Bowerbird/bowerbird-web.git) C# · 379 lines

106 if (emailAddress.Contains(";"))

107 {

108 foreach (string address in emailAddress.Split(';'))

109 {

110 Message.To.Add(new MailAddress(address));

126 public Email To(IList<MailAddress> mailAddresses)

127 {

128 foreach (var address in mailAddresses)

129 {

130 Message.To.Add(address);

152 public Email CC(IList<MailAddress> mailAddresses)

153 {

154 foreach (var address in mailAddresses)

155 {

156 Message.CC.Add(address);

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

223

224 internal static void CheckForNonCommentChildNodes(XmlNode node) {

225 foreach (XmlNode childNode in node.ChildNodes) {

226 if (childNode.NodeType != XmlNodeType.Comment) {

227 throw new ConfigurationErrorsException(

DatabaseSource.cs (https://github.com/fitzchak/ravendb.git) C# · 247 lines

79 : _database.DocumentsStorage.GetDocumentsFrom(_context, _startDocumentEtag, 0, int.MaxValue);

80

81 foreach (var document in documents)

82 {

83 yield return new DocumentItem

95

96 var documents = revisionsStorage.GetRevisionsFrom(_context, _startDocumentEtag, int.MaxValue);

97 foreach (var document in documents)

98 {

99 yield return new DocumentItem

133 : _database.DocumentsStorage.GetTombstonesFrom(_context, _startDocumentEtag, 0, int.MaxValue);

134

135 foreach (var tombstone in tombstones)

136 {

137 yield return tombstone;

CommandRecognizerMode.cs (https://github.com/kring/Voodoo-Voice.git) C# · 274 lines

49 // Set activation of all rules in this mode

50 SpeechRuleState newState = value ? SpeechRuleState.SGDSActive : SpeechRuleState.SGDSInactive;

51 foreach (int id in m_handlers.Keys)

52 {

53 m_grammar.CmdSetRuleIdState(id, newState);

130 // Pull any parameters from properties

131 Dictionary<string, string> parameters = new Dictionary<string, string>();

132 foreach (ISpeechPhraseProperty property in result.PhraseInfo.Properties)

133 {

134 if (property.Children != null)

135 {

136 foreach (ISpeechPhraseProperty childProperty in property.Children)

137 {

138 if (childProperty.Name.Length > 0 &&

ActiveAnimation.cs (https://gitlab.com/knnnrd/arbattlebot) C# · 352 lines

79 }

80

81 foreach (AnimationState state in mAnim)

82 {

83 if (!mAnim.IsPlaying(state.name)) continue;

105 if (mAnim != null)

106 {

107 foreach (AnimationState state in mAnim)

108 {

109 if (mLastDirection == Direction.Reverse) state.time = state.length;

156 bool playing = false;

157

158 foreach (AnimationState state in mAnim)

159 {

160 if (!mAnim.IsPlaying(state.name)) continue;

TypeNameParser.cs (https://github.com/jaundice/nhibernate-core.git) C# · 241 lines

84 string typeArguments = type.Substring(genericTypeArgsStartIdx + 1,

85 genericTypeArgsEndIdx - genericTypeArgsStartIdx - 1);

86 foreach (string item in GenericTypesArguments(typeArguments, genericTypeCardinality))

87 {

88 var typeArgument = ParseTypeName(item);

ProviderModuleBase.cs (https://github.com/NzbDrone/NzbDrone.git) C# · 226 lines

60 var result = new List<TProviderResource>(providerDefinitions.Count());

61

62 foreach (var definition in providerDefinitions)

63 {

64 _providerFactory.SetProviderCharacteristics(definition);

148 var result = new List<TProviderResource>(defaultDefinitions.Count());

149

150 foreach (var providerDefinition in defaultDefinitions)

151 {

152 var providerResource = new TProviderResource();

BattlegroundInfo.cs (https://github.com/enjoii/WCell.git) C# · 492 lines

358 {

359 // also dequeue everyone else

360 relation.Characters.ForeachCharacter(chr =>

361 {

362 if (chr != _chr)

BuyLPI.cs (https://github.com/SystemControl/Questor.git) C# · 264 lines

153

154 // Check items

155 foreach (var requiredItem in offer1.RequiredItems)

156 {

157

LayoutStyleController.cs (https://bitbucket.org/expand/expand.git) C# · 238 lines

49 var layoutManager = View.LayoutManager as IWebLayoutManager;

50 if (layoutManager != null) { ((IWebLayoutManager)View.LayoutManager).Instantiated += OnInstantiated; }

51 foreach (var item in View.GetItems<WebPropertyEditor>()) {

52 item.ControlCreated += ItemOnControlCreated;

53 }

MeshGeometry3D.cs (https://github.com/AnthonyNystrom/NuGenBioChem.git) C# · 259 lines

79

80 mesh.TextureCoordinates.Clear();

81 foreach (Point3D vertex in positions)

82 {

83 mesh.TextureCoordinates.Add(new Point(

100

101 mesh.TextureCoordinates.Clear();

102 foreach (Point3D vertex in positions)

103 {

104 // Don't need to do 'vertex - center' since TransformPoints put us

126

127 mesh.TextureCoordinates.Clear();

128 foreach (Point3D vertex in positions)

129 {

130 // The plane is looking along positive Y, so Z is really Y

DeleteRequestHandler.cs (https://gitlab.com/pgksunilkumar/Serenity) C# · 262 lines

44 protected virtual void OnBeforeDelete()

45 {

46 foreach (var behavior in behaviors)

47 behavior.OnBeforeDelete(this);

48 }

62 }

63

64 foreach (var behavior in behaviors)

65 behavior.OnAfterDelete(this);

66 }

68 protected virtual void ValidateRequest()

69 {

70 foreach (var behavior in behaviors)

71 behavior.OnValidateRequest(this);

72 }

AutoHideStripBase.cs (https://github.com/jspraul/TickZoomPublic.git) C# · 508 lines

229 {

230 int count = 0;

231 foreach (DockPane pane in DockPanel.Panes)

232 {

233 if (States.ContainsPane(pane))

244 {

245 int count = 0;

246 foreach (DockPane pane in DockPanel.Panes)

247 {

248 if (!States.ContainsPane(pane))

273

274 int index = 0;

275 foreach (DockPane dockPane in DockPanel.Panes)

276 {

277 if (!States.ContainsPane(pane.DockPane))

GameObjectSpawnHandler.cs (https://github.com/devmaximus/MaximusParserX.git) C# · 186 lines

49 var shouldcommit = true;

50

51 foreach (var updatefield in gameobject.UpdateFields)

52 {

53 var updatefieldname = MaximusParserX.Parsing.ParsingHandler.GetGameObjectUpdateFieldName(updatefield.Key, (ClientBuild)gameobject.Core.ClientBuildAmount);

171 uint id = 0;

172

173 foreach (var item in items)

174 {

175 id++;

QueryResponseHandler.cs (https://github.com/devmaximus/MaximusParserX.git) C# · 239 lines

116 using (var sw = new System.IO.StreamWriter(file))

117 {

118 foreach (var quest_poi in quest_pois)

119 {

120 sw.WriteLine(quest_poi.Value.GetDeleteCommand());

128 sw.WriteLine(quest_poi.Value.quest_poi_points.First().Value.GetDeleteCommand());

129

130 foreach (var quest_poi_point in quest_poi.Value.quest_poi_points)

131 {

132 sw.WriteLine(quest_poi_point.Value.GetInsertCommand());

145 using (var sw = new System.IO.StreamWriter(file))

146 {

147 foreach (var item in PageTextList.OrderByDescending(t => t.Value.clientbuild).ThenBy(t => t.Value.entry))

148 {

149 sw.WriteLine(item.Value.GetInsertCommand());

DynamoDbTableBuilder.cs (https://github.com/iancooper/Paramore.git) C# · 208 lines

76 var allResults = await Task.WhenAll(allQueries);

77

78 foreach (var result in allResults)

79 {

80 if (result.Table.TableStatus == targetStatus)

104 var tablesResponse = await _client.ListTablesAsync();

105

106 foreach (var tableName in tablesResponse.TableNames)

107 {

108 if (tableCheck.ContainsKey(tableName))

126 var existingAttributes = tableRequest.AttributeDefinitions;

127

128 foreach (var attribute in existingAttributes)

129 {

130 var added = AddKeyUsedFields(tableRequest, attribute, keyMatchedAttributes);

ProjectTest.cs (https://github.com/phlegma/vvvv-sdk.git) C# · 404 lines

48 public static void CopyFilesRecursively(DirectoryInfo source, DirectoryInfo target)

49 {

50 foreach (DirectoryInfo dir in source.GetDirectories())

51 CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name));

52 foreach (FileInfo file in source.GetFiles())

RavenDB_1539.cs (https://github.com/fitzchak/ravendb.git) C# · 255 lines

101 var students = new List<Student>();

102

103 input.Students.ForEach(x =>

104 {

105 var updatedStudent = new Student

129 session.SaveChanges();

130

131 students.ForEach(x =>

132 {

133 x.CourseId = updatedCourse.Id;

SubscriptionDocumentsFetcher.cs (https://github.com/fitzchak/ravendb.git) C# · 281 lines

69 using (_db.Scripts.GetScriptRunner(_patch,true, out var run))

70 {

71 foreach (var doc in _db.DocumentsStorage.GetDocumentsFrom(

72 docsContext,

73 _collection,

132 using (_db.Scripts.GetScriptRunner(_patch, true, out var run))

133 {

134 foreach (var revisionTuple in _db.DocumentsStorage.RevisionsStorage.GetRevisionsFrom(docsContext, collectionName, startEtag + 1, int.MaxValue))

135 {

136 var item = (revisionTuple.current ?? revisionTuple.previous);

TodoOscDevice.cs (https://github.com/woeishi/vvvv-sdk.git) C# · 282 lines

155 {

156 OSCBundle bundle = packet as OSCBundle;

157 foreach (object o in bundle.Values)

158 {

159 this.ProcessPacket(o as OSCPacket);

204 bool found = false;

205

206 foreach (AbstractTodoInput ainput in this.engine.SelectedVariable.Inputs)

207 {

208 if (ainput is TodoOscInput)

250 if (!this.engine.LearnMode)

251 {

252 foreach (TodoOscInput toi in this.inputvars)

253 {

254 if (toi.Message == msg.Address)

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

83 if (persistentClasses == null)

84 throw new ArgumentNullException(nameof(persistentClasses));

85 foreach (var @class in persistentClasses)

86 {

87 await (factory.EvictAsync(@class, cancellationToken)).ConfigureAwait(false);

109 if (entityNames == null)

110 throw new ArgumentNullException(nameof(entityNames));

111 foreach (var name in entityNames)

112 {

113 await (factory.EvictEntityAsync(name, cancellationToken)).ConfigureAwait(false);

135 if (roleNames == null)

136 throw new ArgumentNullException(nameof(roleNames));

137 foreach (var role in roleNames)

138 {

139 await (factory.EvictCollectionAsync(role, cancellationToken)).ConfigureAwait(false);

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

339 var ps = this.PowerShell;

340

341 foreach (var vm in this.CreatedVirtualMachines)

342 {

343 var inputParams = new Dictionary<string, object>()

KeyAwareMetadataStrategy.cs (https://github.com/elevate/nhcontrib.git) C# · 255 lines

71 {

72 IForeignKeyCrawler crawler = ForeignKeyCrawlersRegistar.GetForDialect(currentContext.Dialect.GetType());

73 foreach (DataRow t in currentContext.FilteredTables)

74 {

75 var tableMeta = currentContext.Schema.GetTableMetadata(t, true);

76 var keys = currentContext.Schema.GetForeignKeys(tableMeta.Catalog, tableMeta.Schema, tableMeta.Name);

77 int nameIndex = keys.Columns.IndexOf(CONSTRAINT_NAME);

78 foreach (DataRow key in keys.Rows)

79 {

80 var keyMeta = tableMeta.GetForeignKeyMetadata(key.ItemArray[nameIndex].ToString());

87 {

88

89 foreach (DataRow t in currentContext.FilteredTables)

90 {

91 var tableMeta = currentContext.Schema.GetTableMetadata(t, true);

MemberService.asmx.cs (https://github.com/jracabado/justEdit-.git) C# · 389 lines

76 List<memberCarrier> Members = new List<memberCarrier>();

77

78 foreach (umbraco.cms.businesslogic.member.Member member in members)

79 {

80 Members.Add(CreateMemberCarrier(member));

109 if (carrier.MemberProperties != null)

110 {

111 foreach (memberProperty updatedproperty in carrier.MemberProperties)

112 {

113 umbraco.cms.businesslogic.property.Property property = member.getProperty(updatedproperty.Key);

146 if (carrier.MemberProperties != null)

147 {

148 foreach (memberProperty updatedproperty in carrier.MemberProperties)

149 {

150 umbraco.cms.businesslogic.property.Property property = newMember.getProperty(updatedproperty.Key);

Arm.cs (https://github.com/dreadguristas/Questor.git) C# · 325 lines

90 {

91 var ships = Cache.Instance.DirectEve.GetShipHangar().Items;

92 foreach (var ship in ships.Where(ship => ship.GivenName == shipName))

93 {

94 Logging.Log("Arm: Making [" + ship.GivenName + "] active");

101 State = ArmState.NotEnoughAmmo;

102 Logging.Log("Arm: Found the following ships:");

103 foreach (var ship in ships)

104 Logging.Log("Arm: [" + ship.GivenName + "]");

105 Logging.Log("Arm: Could not find [" + shipName + "] ship!");

256

257 var itemMoved = false;

258 foreach (var item in ammoHangar.Items.OrderBy(i => i.Quantity))

259 {

260 if (item.ItemId <= 0)

SessionStateCmdletAPIs.cs (https://gitlab.com/unofficial-mirrors/PowerShell) C# · 354 lines

61 new SessionStateScopeEnumerator(_currentScope);

62

63 foreach (SessionStateScope scope in scopeEnumerator)

64 {

65 result = scope.GetCmdlet(cmdletName);

152 new SessionStateScopeEnumerator(_currentScope);

153

154 foreach (SessionStateScope scope in scopeEnumerator)

155 {

156 foreach (KeyValuePair<string, List<CmdletInfo>> entry in scope.CmdletTable)

162

163 List<CmdletInfo> toBeAdded = new List<CmdletInfo>();

164 foreach (CmdletInfo cmdletInfo in entry.Value)

165 {

166 if ((cmdletInfo.Options & ScopedItemOptions.Private) == 0 ||

ArtistBrowse.cs (https://github.com/jgauffin/SpotiFire.git) C# · 381 lines

315 sb.AppendLine(Artist.ToString());

316 sb.AppendLine("PortraitsIds.Length=" + PortraitIds.Count);

317 foreach (string portraitId in PortraitIds)

318 sb.AppendLine(portraitId);

319

320 sb.AppendLine("Tracks.Length=" + Tracks.Count);

321 foreach (Track t in Tracks)

322 sb.AppendLine(t.ToString());

323 sb.AppendLine("SimilarArtists.Length=" + SimilarArtists.Count);

324 foreach (Artist a in SimilarArtists)

325 sb.AppendLine(a.ToString());

326

TreapOfSegments.cs (https://bitbucket.org/kriskk/graphics.git) C# · 296 lines

89 // {

90 // int i = 0;

91 // foreach (var segment in treap.GetAllInfos())

92 // {

93 // if (segment.Equals( item)) return i;

188 var t = new ImplicitTreap<Segment>(segments[0]);

189 var ans = t;

190 foreach (Segment segment in segments.Skip(1))

191 {

192 var qt = TreapOfSegmentsTester.GetAllI(ans);

OleCommandUtilTest.cs (https://github.com/jhamm/VsVim.git) C# · 265 lines

83 var source = @"@£$€{[]}\";

84 var modifiers = VimKeyModifiers.Alt | VimKeyModifiers.Control;

85 foreach (var c in source)

86 {

87 using (var ptr = CharPointer.Create(c))

202 var buffer = Vim.CreateVimBuffer(textView);

203 buffer.SwitchMode(ModeKind.Insert, ModeArgument.None);

204 foreach (var cur in KeyInputUtil.VimKeyInputList)

205 {

206 if (!buffer.InsertMode.IsDirectInsert(cur))

SuffixTreeUkkonenCubic.cs (https://github.com/PetroProtsyk/Sources.git) C# · 411 lines

56 if (IsInternal(current))

57 {

58 foreach (var child in current.children)

59 {

60 stack.Push(child);

339

340 // Nodes

341 foreach (var node in Visit())

342 {

343 int index = GetLabelIndex(labels, node);

351 dotText.AppendLine($"node{index} [label=\"\"]");

352

353 foreach (var child in node.children.OrderBy(c => text[c.start]))

354 {

355 int childIndex = GetLabelIndex(labels, child);

Axis.cs (https://gitlab.com/prabaprakash/Real_Metro_Player) C# · 239 lines

142 protected virtual void OnInvalidated(RoutedEventArgs args)

143 {

144 foreach (IAxisListener listener in RegisteredListeners)

145 {

146 listener.AxisInvalidated(this);

207 if (e.OldItems != null)

208 {

209 foreach (IAxisListener obj in e.OldItems)

210 {

211 OnObjectUnregistered(obj);

214 if (e.NewItems != null)

215 {

216 foreach (IAxisListener obj in e.NewItems)

217 {

218 OnObjectRegistered(obj);

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

166

167 var time = RealmLocalizer.FormatTimeSecondsMinutes(CapturePointConversionDelayMillis / 1000);

168 foreach (Character character in Instance.Characters)

169 {

170 character.SendSystemMessage(DefaultAddonLocalizer.Instance.Translate(character.Locale, AddonMsgKey.ABBaseClaimed, chr.Name, Names[(int)character.Locale], chr.Battlegrounds.Team.Side, time));

208 }

209

210 foreach (Character character in Instance.Characters)

211 {

212 character.SendSystemMessage(DefaultAddonLocalizer.Instance.Translate(character.Locale, AddonMsgKey.ABBaseDefended, chr.Name, Names[(int)character.Locale]));

243 }

244

245 foreach (Character character in Instance.Characters)

246 {

247 character.SendSystemMessage(DefaultAddonLocalizer.Instance.Translate(character.Locale, AddonMsgKey.ABBaseAssaulted, chr.Name, Names[(int)character.Locale]));

FormattingContext.InitialContextFinder.cs (https://gitlab.com/sharadag/Roslyn) C# · 200 lines

81 {

82 _formattingRules.AddIndentBlockOperations(list, n, _lastToken);

83 foreach (var element in list)

84 {

85 if (element != null)

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

88 {

89 bool isFirst = true;

90 foreach (Constant constant in constants)

91 {

92 if (isFirst == false)

PutLifecycleConfigurationRequestMarshaller.cs (https://gitlab.com/vectorci/aws-sdk-net) C# · 197 lines

60 if (lifecycleConfigurationLifecycleConfigurationrulesList != null && lifecycleConfigurationLifecycleConfigurationrulesList.Count > 0)

61 {

62 foreach (var lifecycleConfigurationLifecycleConfigurationrulesListValue in lifecycleConfigurationLifecycleConfigurationrulesList)

63 {

64 xmlWriter.WriteStartElement("Rule", "");

87 if (transitions != null && transitions.Count > 0)

88 {

89 foreach (var transition in transitions)

90 {

91 if (transition != null)

123 if (noncurrentVersionTransitions != null && noncurrentVersionTransitions.Count > 0)

124 {

125 foreach (var noncurrentVersionTransition in noncurrentVersionTransitions)

126 {

127 if (noncurrentVersionTransition != null)

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

30 if (headers != null)

31 {

32 foreach (var h in headers)

33 {

34 request.AppendFormat("{0}: {1}{2}", h.Key, h.Value, CRLF);

77 {

78 Assert.Equal(headers.Count, requestLine.HttpHeaders.Count());

79 foreach (var header in headers)

80 {

81 Assert.True(requestLine.HttpHeaders.Contains(header.Key), "Parsed header did not contain expected key " + header.Key);

137 public void RequestHeaderParserAcceptsStandardMethods()

138 {

139 foreach (HttpMethod method in HttpUnitTestDataSets.AllHttpMethods)

140 {

141 byte[] data = CreateBuffer(method.ToString(), "/", "HTTP/1.1", ParserData.ValidHeaders);

ParameterizedLayoutAlgorithmBase.cs (https://github.com/saeidmh83/AssemblyVisualizer.git) C# · 258 lines

191

192 //initialize with random position

193 foreach ( TVertex v in VisitedGraph.Vertices )

194 {

195 //for vertices without assigned position

219 //get the topLeft position

220 var topLeft = new Point( float.PositiveInfinity, float.PositiveInfinity );

221 foreach ( var pos in vertexPositions.Values.ToArray() )

222 {

223 topLeft.X = Math.Min( topLeft.X, pos.X );

226

227 //translate with the topLeft position

228 foreach ( var v in vertexPositions.Keys.ToArray() )

229 {

230 var pos = vertexPositions[v];

GameAttributeMap.cs (https://github.com/K42/mooege.git) C# · 328 lines

62 {

63 var list = GetMessageList(actorID);

64 foreach (var msg in list)

65 client.SendMessage(msg);

66 _changedAttributes.Clear();

75 {

76 var list = GetChangedMessageList(actorID);

77 foreach (var msg in list)

78 client.SendMessage(msg);

79 _changedAttributes.Clear();

86

87 var list = GetChangedMessageList(actorID);

88 foreach (var msg in list)

89 {

90 foreach(var client in clients)

Program.cs (https://github.com/hap-adong/IDPicker.git) C# · 284 lines

25 string fasta = "Z:\\home\\dwang\\fragmentation\\UPS\\Sigma49-reverse.fasta";

26 List<string> proteinList = Package.readDatabase(fasta);

27 foreach (var peptide in peplist_naive)

28 {

29 foreach (var protein in proteinList)

37 }

38

39 foreach (var peptide in peplist_baso)

40 {

41 foreach (var protein in proteinList)

54 //how is the overlap

55 int overlap = 0;

56 foreach (var pep_naive in peplist_naive)

57 {

58 foreach (var pep_baso in peplist_baso)

aiNodeVector.cs (https://gitlab.com/Cerulean/yurina-GL) C# · 348 lines

48 if (c == null)

49 throw new ArgumentNullException("c");

50 foreach (aiNode element in c) {

51 this.Add(element);

52 }

aiMeshVector.cs (https://gitlab.com/Cerulean/yurina-GL) C# · 348 lines

48 if (c == null)

49 throw new ArgumentNullException("c");

50 foreach (aiMesh element in c) {

51 this.Add(element);

52 }

aiFaceVector.cs (https://gitlab.com/Cerulean/yurina-GL) C# · 348 lines

48 if (c == null)

49 throw new ArgumentNullException("c");

50 foreach (aiFace element in c) {

51 this.Add(element);

52 }

aiBoneVector.cs (https://gitlab.com/Cerulean/yurina-GL) C# · 348 lines

48 if (c == null)

49 throw new ArgumentNullException("c");

50 foreach (aiBone element in c) {

51 this.Add(element);

52 }

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

137

138 token = null;

139 foreach (SecurityKeyIdentifierClause clause in keyIdentifier)

140 {

141 if (TryResolveToken(clause, out token))

170 store.Open(OpenFlags.ReadOnly);

171 certs = store.Certificates;

172 foreach (X509Certificate2 cert in certs)

173 {

174 X509ThumbprintKeyIdentifierClause thumbprintKeyIdentifierClause = keyIdentifierClause as X509ThumbprintKeyIdentifierClause;

tokenreplacements.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 371 lines

212 = PortingRules::instance()->getTokenReplacementRules();

213 bool changed = false;

214 foreach(TokenReplacement *tokenReplacement, tokenReplacements) {

215 changed = tokenReplacement->doReplace(tokenContainer, nameTokenIndex, textReplacements);

216 if(changed)

_LayoutWidget.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 269 lines ✨ Summary

This JavaScript code defines a layout system for HTML elements, specifically designed for use with the Dijit library. It provides methods to add and remove child elements, resize them based on their layout alignment, and calculate content box sizes from margin box sizes. The dijit.layout.marginBox2contentBox function is used to convert margin box dimensions to content box dimensions, making it easier to position and size HTML elements.

47 if(this._started){ return; }

48

49 dojo.forEach(this.getChildren(), function(child){ child.startup(); });

50

51 // If I am a top level widget

228

229 // set positions/sizes

230 dojo.forEach(children, function(child){

231 var elm = child.domNode,

232 pos = child.layoutAlign;

spreadsheets.cs (http://google-gdata.googlecode.com/svn/trunk/) C# · 315 lines ✨ Summary

This C# code defines a Google.Spreadsheets namespace that provides a class called Application, which is used to interact with Google Spreadsheets. It allows users to log in, retrieve and manage spreadsheets, worksheets, and cells, as well as parse range strings into numerical coordinates.

93 EnsureSpreadsheetFeed();

94

95 foreach (SpreadsheetEntry entry in Application.sf.Entries)

96 {

97 results.Add(entry.Title.Text);

127 }

128 EnsureSpreadsheetFeed();

129 foreach (SpreadsheetEntry entry in Application.sf.Entries)

130 {

131 if (value.Equals(entry.Title.Text))

157

158 WorksheetFeed feed = Application.se.Worksheets;

159 foreach (WorksheetEntry worksheet in feed.Entries)

160 {

161 result.Add(worksheet.Title.Text);

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 781 lines

659 ProjectManager pm=getInstance()

660 // then use java.util.Iterator getProjects();

661 // and foreach project use VPTNode node=prj.getChildNode(java.lang.String path);

662 </programlisting>

663 </informalexample>