tzinfo.__reduce__ C# (CSharp) Method

__reduce__() public method

public __reduce__ ( CodeContext context ) : PythonTuple
context CodeContext
return PythonTuple
            public PythonTuple __reduce__(CodeContext/*!*/ context) {
                object dict;
                if (GetType() == typeof(tzinfo) ||
                    !PythonOps.TryGetBoundAttr(context, this, "__dict__", out dict)) {
                    return PythonTuple.MakeTuple(DynamicHelpers.GetPythonType(this), PythonTuple.EMPTY);
                }

                return PythonTuple.MakeTuple(DynamicHelpers.GetPythonType(this), PythonTuple.EMPTY, dict);
            }
        }