public NamedReferenceDecorator(IValueReference <TValue> originalReference, [NotNull] string name,
                                ValueOriginKind kind, [CanBeNull] IMetadataTypeLite declaredType,
                                IValueRoleFactory <TValue> roleFactory)
 {
     myOriginalReference = originalReference;
     DefaultName         = name;
     OriginKind          = kind;
     DeclaredType        = declaredType;
     myRoleFactory       = roleFactory;
 }
Exemple #2
0
 public NamedReferenceDecorator(IValueReference <TValue> originalReference,
                                [NotNull] string name,
                                ValueOriginKind kind,
                                ValueFlags flags,
                                [CanBeNull] IMetadataTypeLite declaredType,
                                IValueRoleFactory <TValue> roleFactory,
                                bool isNameFromValue = false)
 {
     myOriginalReference = originalReference;
     DefaultName         = name;
     OriginKind          = kind;
     DefaultFlags        = flags;
     DeclaredType        = declaredType;
     myRoleFactory       = roleFactory;
     IsNameFromValue     = isNameFromValue;
 }