protected override void InitializeFields()
        {
            base.InitializeFields();

            _targetField = new TargetFieldMetadata("_target", _proxyDefinition.TargetType);

            Fields.Add(_targetField);
        }
Пример #2
0
        public TargetMetadata(
            string parameterName, 
            Type type, 
            Type targetType, 
            bool isProxyInstantiated)
            : base(parameterName)
        {
            _parameterName = parameterName;
            _type = type;
            _targetType = targetType;
            _isProxyInstantiated = isProxyInstantiated;

            _instanceField = new TargetFieldMetadata("_" + parameterName, type);
        }