public MethodDbSaver(MethodBase baseMethod) { this.Name = baseMethod.Name; this.IsAbstract = baseMethod.IsAbstract; this.Accessibility = baseMethod.Accessibility; this.Extension = baseMethod.Extension; this.ReturnType = TypeDbSaver.GetOrAdd(baseMethod.ReturnType); this.IsStatic = baseMethod.IsStatic; this.IsVirtual = baseMethod.VirtualEnum; GenericArguments = baseMethod.GenericArguments?.Select(TypeDbSaver.GetOrAdd).ToList(); Parameters = baseMethod.Parameters?.Select(t => new ParameterDbSaver(t)).ToList(); }
public NamespaceDbSaver(NamespaceBase namespaceBase) { this.Name = namespaceBase.Name; Types = namespaceBase.Types?.Select(t => TypeDbSaver.GetOrAdd(t)).ToList(); }
public PropertyDbSaver(PropertyBase baseProperty) { this.Name = baseProperty.Name ?? "default"; this.Type = TypeDbSaver.GetOrAdd(baseProperty.Type); }
public ParameterDbSaver(ParameterBase baseParameter) { this.Name = baseParameter.Name; this.Type = TypeDbSaver.GetOrAdd(baseParameter.Type); }