public ConventionBasedCodingStyle Merge(ConventionBasedCodingStyle other) { AddTypes(other.types); Type.Merge(other.Type); TypeIsValue.Merge(other.TypeIsValue); TypeIsView.Merge(other.TypeIsView); IdExtractor.Merge(other.IdExtractor); ValueExtractor.Merge(other.ValueExtractor); Locator.Merge(other.Locator); Converters.Merge(other.Converters); StaticInstances.Merge(other.StaticInstances); Initializers.Merge(other.Initializers); Datas.Merge(other.Datas); Operations.Merge(other.Operations); DataFetchedEagerly.Merge(other.DataFetchedEagerly); ParameterIsOptional.Merge(other.ParameterIsOptional); ParameterDefaultValue.Merge(other.ParameterDefaultValue); Module.Merge(other.Module); TypeName.Merge(other.TypeName); DataName.Merge(other.DataName); OperationName.Merge(other.OperationName); ParameterName.Merge(other.ParameterName); TypeMarks.Merge(other.TypeMarks); InitializerMarks.Merge(other.InitializerMarks); DataMarks.Merge(other.DataMarks); OperationMarks.Merge(other.OperationMarks); ParameterMarks.Merge(other.ParameterMarks); return(this); }
public Student(string s) { string[] elems = s.Split(';'); Name = elems[0]; NumGroup = int.Parse(elems[1]); Marks = new TypeMarks(int.Parse(elems[2])); }
public Student() { Console.WriteLine("Enter Student"); Console.WriteLine("Name"); Name = Console.ReadLine(); Console.WriteLine("NumGroup"); NumGroup = int.Parse(Console.ReadLine()); Console.WriteLine("NumMarks"); int numMarks = int.Parse(Console.ReadLine()); Marks = new TypeMarks(numMarks); }
List <string> ICodingStyle.GetMarks(IType type) => TypeMarks.Get(type);
public Student(string name, int numGroup, int numMarks) { Name = name; NumGroup = numGroup; Marks = new TypeMarks(numMarks); }