public FieldMetadata(FieldBase fieldMetadata) { this.Name = fieldMetadata.Name; this.Type = TypeMetadata.GetOrAdd(fieldMetadata.Type); this.AccessLevel = fieldMetadata.AccessLevel.ToLogicEnum(); this.StaticEnum = fieldMetadata.StaticEnum.ToLogicEnum(); }
public MethodMetadata(DBCore.Model.MethodBase baseMethod) { this.Name = baseMethod.Name; this.AbstractEnum = baseMethod.AbstractEnum.ToLogicEnum(); this.AccessLevel = baseMethod.AccessLevel.ToLogicEnum(); this.Extension = baseMethod.Extension; this.ReturnType = TypeMetadata.GetOrAdd(baseMethod.ReturnType); this.StaticEnum = baseMethod.StaticEnum.ToLogicEnum(); this.VirtualEnum = baseMethod.VirtualEnum.ToLogicEnum(); GenericArguments = baseMethod.GenericArguments?.Select(TypeMetadata.GetOrAdd).ToList(); Parameters = baseMethod.Parameters?.Select(t => new ParameterMetadata(t)).ToList(); }
public PropertyMetadata(PropertyBase baseProperty) { Name = baseProperty.Name; Type = TypeMetadata.GetOrAdd(baseProperty.Type); }
public NamespaceMetadata(NamespaceBase namespaceBase) { Name = namespaceBase.Name; Types = namespaceBase.Types?.Select(t => TypeMetadata.GetOrAdd(t)); }
public ParameterMetadata(ParameterBase baseElement) { Name = baseElement.Name; Type = TypeMetadata.GetOrAdd(baseElement.Type); }