Exemple #1
0
        public MethodDb(MethodDTG method)
        {
            Name         = method.Name;
            MetadataName = method.MetadataName;
            if (method.SerReturnType != null)
            {
                SerReturnType = TypeDb.LoadType(method.SerReturnType);
            }


            SerParameters = method.SerParameters?.Select(p => new ParameterDb(p)).ToList();
        }
Exemple #2
0
 public PropertyDb(PropertyDTG property)
 {
     Name         = property.Name;
     MetadataName = property.MetadataName;
     SerType      = TypeDb.LoadType(property.SerType);
 }
Exemple #3
0
 public void RegisterType(string name, TypeDb type)
 {
     _data.Add(name, type);
 }
Exemple #4
0
 public ParameterDb(ParameterDTG parameter)
 {
     Name         = parameter.Name;
     MetadataName = parameter.MetadataName;
     Type         = TypeDb.LoadType(parameter.Type);
 }