{"action":"opened","issue":{"url":"https://api.github.com/repos/zivillian/ldap.net/issues/2","repository_url":"https://api.github.com/repos/zivillian/ldap.net","labels_url":"https://api.github.com/repos/zivillian/ldap.net/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/zivillian/ldap.net/issues/2/comments","events_url":"https://api.github.com/repos/zivillian/ldap.net/issues/2/events","html_url":"https://github.com/zivillian/ldap.net/issues/2","id":361416260,"node_id":"MDU6SXNzdWUzNjE0MTYyNjA=","number":2,"title":"cyclic references","user":{"login":"zivillian","id":6039253,"node_id":"MDQ6VXNlcjYwMzkyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/6039253?v=4","gravatar_id":"","url":"https://api.github.com/users/zivillian","html_url":"https://github.com/zivillian","followers_url":"https://api.github.com/users/zivillian/followers","following_url":"https://api.github.com/users/zivillian/following{/other_user}","gists_url":"https://api.github.com/users/zivillian/gists{/gist_id}","starred_url":"https://api.github.com/users/zivillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zivillian/subscriptions","organizations_url":"https://api.github.com/users/zivillian/orgs","repos_url":"https://api.github.com/users/zivillian/repos","events_url":"https://api.github.com/users/zivillian/events{/privacy}","received_events_url":"https://api.github.com/users/zivillian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-18T17:55:45Z","updated_at":"2018-09-18T17:55:45Z","closed_at":null,"author_association":"OWNER","body":"[RFC 4511 - 4.5.1](https://tools.ietf.org/html/rfc4511#section-4.5.1)\r\n\r\n```\r\nFilter ::= CHOICE {\r\n...\r\n             not             [2] Filter,\r\n...\r\n```\r\n\r\nhttps://github.com/zivillian/ldap.net/blob/8389e4e6e091738074230875f557ef4b4e8cbc6e/ldap/Asn1/Asn1Filter.cs#L35-L38\r\n\r\nI currently cannot change the type to\r\n```csharp\r\npublic Asn1Filter Not;\r\n```\r\n\r\nI can't use a struct\r\n> causes a cycle in struct layout\r\n\r\nTrying to use a class results in\r\n\r\n```\r\nSystem.Security.Cryptography.Asn1.AsnSerializationConstraintException :\r\nThe tag (ContextSpecific 0) for field 'And' on type 'zivillian.ldap.Asn1.Asn1Filter'\r\nalready is associated in this context with field 'And' on type 'zivillian.ldap.Asn1.Asn1Filter'.\r\n```"}}
{"actor":{"display_login":"zivillian"}}