// PUBLIC METHODS public int GetPlayedTimes() { int value = 0; Array.ForEach(Games, (data) => { value += data.PlayedTimes; }); return(value); }
public int GetScore() { int value = 0; Array.ForEach(Games, (data) => { value += data.Score; }); return(value); }
public float GetTimeSpent() { float value = 0; Array.ForEach(Games, (data) => { value += data.TimeSpent; }); return(value); }
public int GetDeaths() { int value = 0; Array.ForEach(Games, (data) => { value += data.Deaths; }); return(value); }
public int GetHeadshots() { int value = 0; Array.ForEach(Games, (data) => { value += data.Headshots; }); return(value); }
public int GetKills() { int value = 0; Array.ForEach(Games, (data) => { value += data.Kills; }); return(value); }
public int GetMoney() { int value = 0; Array.ForEach(Games, (data) => { value += data.Money; }); return(value); }
public int GetExperience() { int value = 0; Array.ForEach(Games, (data) => { value += data.Experience; }); return(value); }
public static void ForEach( this System.Array array, Action <int[]> action) { var Rank = array.Rank; var Ends = new int[Rank]; for (int i = 0; i < Rank; i++) { Ends[i] = array.GetUpperBound(i) + 1; } array.ForEach(Ends, action); }
public double GetLastPlayedDate() { double value = 0; Array.ForEach(Games, (data) => { if (value < data.LastPlayedDate) { value = data.LastPlayedDate; } }); return(value); }
private void BindComponentProperty(HbmComponent componentMapping, Property property, Component model) { property.IsUpdateable = componentMapping.update; property.IsInsertable = componentMapping.insert; if (componentMapping.unique) { model.Owner.Table.CreateUniqueKey(model.ColumnIterator.OfType <Column>().ToList()); } HbmTuplizer[] tuplizers = componentMapping.tuplizer; if (tuplizers != null) { Array.ForEach(tuplizers.Select(tuplizer => new { TuplizerClassName = FullQualifiedClassName(tuplizer.@class, mappings), Mode = tuplizer.entitymode.ToEntityMode() }).ToArray(), x => model.AddTuplizer(x.Mode, x.TuplizerClassName)); } }
public static void ForEach <T>(this T[] array, Action <T> action) { Array.ForEach(array, action); }
public void ForEach(Action <T> iterator) => Arr.ForEach(array, iterator);