Skip to content

Instantly share code, notes, and snippets.

Dávid Molnár molnard

Block or report user

Report or block molnard

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View WasabiCodingGuidelines.md

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;
View Address reuse cases in CJ
| 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 |
View WasabiCodingGuidelines.md

IDisposable pattern

public class MyClass : IDisposable

#region IDisposable Support

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

	protected virtual void Dispose(bool disposing)
	{
View gist:3a5230d96e40c07a1069f558b2d1b217
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
You can’t perform that action at this time.