Ejemplo n.º 1
0
    public void OnAfterDeserialize()
    {
        if (_returnTypeData != null && _returnTypeData.Length > 0)
        {
            return;
        }
        _returnTypeData = AssemblyReflectionHelper.Serialise(DelegateType.GetMethod("Invoke").ReturnType);

        if (_paramsTypeData != null && _paramsTypeData.Length > 0)
        {
            return;
        }
        _paramsTypeData = AssemblyReflectionHelper.Serialise(
            DelegateType
            .GetMethod("Invoke").
            GetParameters().
            Select(e => e.ParameterType).ToArray());
        //if (_DelegateTypeData != null && _DelegateTypeData.Length > 0 && _delegateType == null)
        //    _delegateType = DataHelper.Deserialse<Type>(_DelegateTypeData
    }