Skip to content

Instantly share code, notes, and snippets.

View molnard's full-sized avatar
💪
Building

Dávid Molnár molnard

💪
Building
  • Hungary
View GitHub Profile
2019-01-09 23:38:18 INFO CcjClientState: Coin removed from the waiting list: 1:b3689b8566e7430d6ee82db58f075c2959867d30f4434e01fd357bdbb690d380.
Unhandled Exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object v

IDisposable pattern

public class MyClass : IDisposable

#region IDisposable Support

	private volatile bool _disposedValue = false; // To detect redundant calls

	protected virtual void Dispose(bool disposing)
	{
| Address reuse case | Personal impact | Public impact |
| ----------------------------------------- | -------- | -------: |
| Address reuse on input side | None | None |
| Address reuse in output side | Minor | None |
| Address reuse both side on change coin | None | None |
| Address reuse both side on mixed coin | High | Minor |

Wasabi Coding Guidelines for UI

Example ViewModel Class

  public class MyViewModel : ReactiveObject, IDisposable
	{
		private CompositeDisposable Disposables { get; } = new CompositeDisposable();
		private string _myProperty;
		private bool _myConfirmed;
Date/Time:        2020-04-24 17:31:38 +0200
End time:         2020-04-24 17:33:29 +0200
OS Version:       Mac OS X 10.15.4 (Build 19E287)
Architecture:     x86_64
Report Version:   29

Data Source:      Stackshots
Shared Cache:     0x8665000 F5A98C66-A110-3E04-943E-3E878D705843