Ejemplo n.º 1
0
        public Exceptionless.Models.Data.Method ToMethod()
        {
            var module = new Exceptionless.Models.Data.Method {
                Name               = Name,
                ModuleId           = ModuleId,
                DeclaringNamespace = DeclaringNamespace,
                DeclaringType      = DeclaringType,
                IsSignatureTarget  = IsSignatureTarget
            };

            if (GenericArguments != null && GenericArguments.Count > 0)
            {
                module.GenericArguments = GenericArguments.ToGenericArguments();
            }

            if (Parameters != null && Parameters.Count > 0)
            {
                module.Parameters = Parameters.ToParameters();
            }

            if (ExtendedData != null && ExtendedData.Count > 0)
            {
                module.Data.AddRange(ExtendedData.ToData());
            }

            return(module);
        }
Ejemplo n.º 2
0
        public Exceptionless.Core.Models.Data.StackFrame ToStackFrame()
        {
            var frame = new Exceptionless.Core.Models.Data.StackFrame {
                Name               = Name,
                ModuleId           = ModuleId,
                DeclaringNamespace = DeclaringNamespace,
                DeclaringType      = DeclaringType,
                IsSignatureTarget  = IsSignatureTarget,
                Column             = Column,
                FileName           = FileName,
                LineNumber         = LineNumber
            };

            if (GenericArguments != null && GenericArguments.Count > 0)
            {
                frame.GenericArguments = GenericArguments.ToGenericArguments();
            }

            if (Parameters != null && Parameters.Count > 0)
            {
                frame.Parameters = Parameters.ToParameters();
            }

            if (ExtendedData != null && ExtendedData.Count > 0)
            {
                frame.Data.AddRange(ExtendedData.ToData());
            }

            return(frame);
        }