Skip to content

Commit

Permalink
OnDeserialized throws MethodAccessException on Windows Phone because …
Browse files Browse the repository at this point in the history
…method is not public.
  • Loading branch information
jlaanstra committed Apr 29, 2012
1 parent 006e4a4 commit e4d1ffc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactiveUI.Routing/RoutingState.cs
Expand Up @@ -58,6 +58,9 @@ public RoutingState()
}

[OnDeserialized]
#if WINDOWS_PHONE
public
#endif
void setupRx(StreamingContext sc) { setupRx(); }
void setupRx()
{
Expand Down
3 changes: 3 additions & 0 deletions ReactiveUI/ReactiveCollection.cs
Expand Up @@ -37,6 +37,9 @@ public class ReactiveCollection<T> : ObservableCollection<T>, IReactiveCollectio
public ReactiveCollection(IEnumerable<T> list) { setupRx(list); }

[OnDeserialized]
#if WINDOWS_PHONE
public
#endif
void setupRx(StreamingContext _) { setupRx(); }

void setupRx(IEnumerable<T> List = null)
Expand Down
3 changes: 3 additions & 0 deletions ReactiveUI/ReactiveObject.cs
Expand Up @@ -76,6 +76,9 @@ protected ReactiveObject()
}

[OnDeserialized]
#if WINDOWS_PHONE
public
#endif
void setupRxObj(StreamingContext sc) { setupRxObj(); }

void setupRxObj()
Expand Down

0 comments on commit e4d1ffc

Please sign in to comment.