Пример #1
0
        public void Define(
            AST.StructOrUnion structOrUnion,
            ImmutableList <Tuple <Option <String>, ExprType> > members)
        {
            var _members = members.ConvertAll(_ => Tuple.Create(_.Item1.Value, _.Item2));

            if (structOrUnion == AST.StructOrUnion.STRUCT)
            {
                DefineStruct(_members);
            }
            else
            {
                DefineUnion(_members);
            }
        }
 internal static ImmutableList <AnimeInfoStorage> ProjectToStorageModelWithEtag(ImmutableList <AnimeInfo> source) =>
 source.ConvertAll(ProjectToStorageModelWithEtag);
Пример #3
0
 public void Define(
     AST.StructOrUnion structOrUnion,
     ImmutableList<Tuple<Option<String>, ExprType>> members) {
     var _members = members.ConvertAll(_ => Tuple.Create(_.Item1.Value, _.Item2));
     if (structOrUnion == AST.StructOrUnion.STRUCT) {
         DefineStruct(_members);
     } else {
         DefineUnion(_members);
     }
 }
Пример #4
0
 public object ImmutableList_Convert()
 {
     return(BigImmutableList.ConvertAll(i => i.ToString()));
 }