private static Timeline GetTimeline(CollectionObjects objects, string id) { var timeline = objects.Timelines[id]; if (timeline.Id == null) timeline.Id = id; if (timeline.User == null) timeline.User = objects.Users[timeline.UserId]; return timeline; }
private static Timeline GetTimeline(CollectionObjects objects, string id) { var timeline = objects.Timelines[id]; if (timeline.Id == null) { timeline.Id = id; } if (timeline.User == null) { timeline.User = objects.Users[timeline.UserId]; } return(timeline); }
public static bool IsValueContain(CollectionObjects valueType, string Text, out string Value) { List<TextValuePair> textValueCollection = new List<TextValuePair>(); bool returnValue = false; Value = string.Empty; if (ObjectCollection.TryGetValue(valueType, out textValueCollection)) { TextValuePair v1 = (from p in textValueCollection where p.Text.ToLower() == Text.ToLower() select p).FirstOrDefault<TextValuePair>(); if (v1 != null) { returnValue = true; Value = v1.Value; } } return returnValue; }