-
-
Notifications
You must be signed in to change notification settings - Fork 91
Description
Hello,
(System.Object)(.If ( ((<>f__AnonymousType517[[REDACTED].Site,[REDACTED].Candidate,[REDACTED].Candidate,[REDACTED].Candidate,System.Collections.Generic.List1[[REDACTED].Dicts.CandidateStateCalc],System.String,System.Nullable1[System.Boolean],[REDACTED].Candidate,System.Nullable1[System.Boolean],[REDACTED].Candidate,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].InfrastructureObject,System.Nullable1[System.Boolean],System.Nullable1[System.Boolean],System.Int32,[REDACTED].Candidate])$displayType).param_13 != null && ((<>f__AnonymousType517[[REDACTED].Site,[REDACTED].Candidate,[REDACTED].Candidate,[REDACTED].Candidate,System.Collections.Generic.List1[[REDACTED].Dicts.CandidateStateCalc],System.String,System.Nullable1[System.Boolean],[REDACTED].Candidate,System.Nullable1[System.Boolean],[REDACTED].Candidate,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].InfrastructureObject,System.Nullable1[System.Boolean],System.Nullable1[System.Boolean],System.Int32,[REDACTED].Candidate])$displayType).param_14 != null ) { ((<>f__AnonymousType517[[REDACTED].Site,[REDACTED].Candidate,[REDACTED].Candidate,[REDACTED].Candidate,System.Collections.Generic.List1[[REDACTED].Dicts.CandidateStateCalc],System.String,System.Nullable1[System.Boolean],[REDACTED].Candidate,System.Nullable1[System.Boolean],[REDACTED].Candidate,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].InfrastructureObject,System.Nullable1[System.Boolean],System.Nullable1[System.Boolean],System.Int32,[REDACTED].Candidate])$displayType).param_14 } .Else { null } || .If ( ((<>f__AnonymousType517[[REDACTED].Site,[REDACTED].Candidate,[REDACTED].Candidate,[REDACTED].Candidate,System.Collections.Generic.List1[[REDACTED].Dicts.CandidateStateCalc],System.String,System.Nullable1[System.Boolean],[REDACTED].Candidate,System.Nullable1[System.Boolean],[REDACTED].Candidate,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].InfrastructureObject,System.Nullable1[System.Boolean],System.Nullable1[System.Boolean],System.Int32,[REDACTED].Candidate])$displayType).param_13 != null && ((<>f__AnonymousType517[[REDACTED].Site,[REDACTED].Candidate,[REDACTED].Candidate,[REDACTED].Candidate,System.Collections.Generic.List1[[REDACTED].Dicts.CandidateStateCalc],System.String,System.Nullable1[System.Boolean],[REDACTED].Candidate,System.Nullable1[System.Boolean],[REDACTED].Candidate,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].InfrastructureObject,System.Nullable1[System.Boolean],System.Nullable1[System.Boolean],System.Int32,[REDACTED].Candidate])$displayType).param_15 != null ) { ((<>f__AnonymousType517[[REDACTED].Site,[REDACTED].Candidate,[REDACTED].Candidate,[REDACTED].Candidate,System.Collections.Generic.List1[[REDACTED].Dicts.CandidateStateCalc],System.String,System.Nullable1[System.Boolean],[REDACTED].Candidate,System.Nullable1[System.Boolean],[REDACTED].Candidate,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].Enums.CandidateStatusEnum,[REDACTED].InfrastructureObject,System.Nullable1[System.Boolean],System.Nullable1[System.Boolean],System.Int32,[REDACTED].Candidate])$displayType).param_15 } .Else { null }
Postprocessed version of expression without a long definition of input type:
(System.Object)(.If ( ((INPUTTYPE)$displayType).param_13 != null && ((INPUTTYPE).param_14 != null ) { ((INPUTTYPE).param_14 } .Else { null } || .If ( ((INPUTTYPE)$displayType).param_13 != null && ((INPUTTYPE)$displayType).param_15 != null ) { ((INPUTTYPE)$displayType).param_15 } .Else { null }
Following program compiles without an issue but invoking it causes "CLR detected an invalid program" exception
Sorry for bad code insertion. blame github :)