Author Topic: TNet.Serialization.Create error / ignored pragma ?  (Read 2355 times)

Nelson

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
TNet.Serialization.Create error / ignored pragma ?
« on: September 16, 2014, 03:26:02 PM »
Importing and compiling for Windows Phone I get:

Assets/TNet/Client/TNSerializer.cs(393,30): error CS0111: A member `TNet.Serialization.Create(this System.Type)' is already defined. Rename this member or use different parameter types

Using ver. 1.9.8

any help about that ?
thanks,
regards,
Nelson

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet.Serialization.Create error / ignored pragma ?
« Reply #1 on: September 17, 2014, 01:31:46 PM »
You must be on a platform that doesn't support reflection, since it's in an #ifdef. Delete the second instance of that function around line 390.

Nelson

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet.Serialization.Create error / ignored pragma ?
« Reply #2 on: September 17, 2014, 05:41:56 PM »
the matter is that the compiler itself is ignoring the pragma (#if - #else #endif)
compiling for android works out, but not for windows phone

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet.Serialization.Create error / ignored pragma ?
« Reply #3 on: September 18, 2014, 05:30:29 PM »
As I mentioned, remove the second function to fix the issue. I've already got rid of it in the Pro repository, so it will be fixed in the next update.

Nelson

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet.Serialization.Create error / ignored pragma ?
« Reply #4 on: September 21, 2014, 12:57:15 AM »
thanks a lot !