Пример #1
0
 /// <summary>
 /// Creates a closure type for current closure.
 /// </summary>
 public void CreateClosureType(Context ctx)
 {
     var id = ctx.GetClosureId();
     var closureName = string.Format(EntityNames.ClosureTypeNameTemplate, id);
     ClosureTypeId = id;
     ClosureType = ctx.CreateType(closureName, isSealed: true, prepare: true);
     ClosureType.Kind = TypeEntityKind.Closure;
 }