Example #1
0
 public void RemoveMethodDef(MethodDef md)
 {
     if (!MethodDefs.Remove(md))
     {
         throw new ApplicationException($"Could not remove MethodDef: {md}");
     }
 }
Example #2
0
 public void RemoveMethodDef(MethodDef md)
 {
     if (!MethodDefs.Remove(md))
     {
         throw new ApplicationException(string.Format("Could not remove MethodDef: {0}", md));
     }
 }
Example #3
0
        public Region Serialize(IMethodImpl method, DocumentConfig documentConfig)
        {
            if (Type == MethodType.Query && !method.Query)
            {
                return(null);
            }

            var regions = Regions.Select(r => r.Serialize(method, documentConfig)).ToReadOnlyList();
            var methods = MethodDefs.SelectMany(m => m.Serialize(method, documentConfig, this)).ToReadOnlyList();

            return(new Region(Name, regions, methods, false));
        }