c# - How can i enumerate methods inside this class? -
when check via debug, can see methods , variables no matter solution have tried posted on stackoverflow failed
here how can see methods debug
here class
[global::system.diagnostics.debuggernonusercodeattribute()] public sealed partial class playerstats : pb::imessage<playerstats> { /// <summary>field number "level" field.</summary> public const int levelfieldnumber = 1; /// <summary>field number "experience" field.</summary> public const int experiencefieldnumber = 2; /// <summary>field number "prev_level_xp" field.</summary> public const int prevlevelxpfieldnumber = 3; /// <summary>field number "next_level_xp" field.</summary> public const int nextlevelxpfieldnumber = 4; /// <summary>field number "km_walked" field.</summary> public const int kmwalkedfieldnumber = 5; /// <summary>field number "pokemons_encountered" field.</summary> public const int pokemonsencounteredfieldnumber = 6; /// <summary>field number "unique_pokedex_entries" field.</summary> public const int uniquepokedexentriesfieldnumber = 7; /// <summary>field number "pokemons_captured" field.</summary> public const int pokemonscapturedfieldnumber = 8; /// <summary>field number "evolutions" field.</summary> public const int evolutionsfieldnumber = 9; /// <summary>field number "poke_stop_visits" field.</summary> public const int pokestopvisitsfieldnumber = 10; /// <summary>field number "pokeballs_thrown" field.</summary> public const int pokeballsthrownfieldnumber = 11; /// <summary>field number "eggs_hatched" field.</summary> public const int eggshatchedfieldnumber = 12; /// <summary>field number "big_magikarp_caught" field.</summary> public const int bigmagikarpcaughtfieldnumber = 13; /// <summary>field number "battle_attack_won" field.</summary> public const int battleattackwonfieldnumber = 14; /// <summary>field number "battle_attack_total" field.</summary> public const int battleattacktotalfieldnumber = 15; /// <summary>field number "battle_defended_won" field.</summary> public const int battledefendedwonfieldnumber = 16; /// <summary>field number "battle_training_won" field.</summary> public const int battletrainingwonfieldnumber = 17; /// <summary>field number "battle_training_total" field.</summary> public const int battletrainingtotalfieldnumber = 18; /// <summary>field number "prestige_raised_total" field.</summary> public const int prestigeraisedtotalfieldnumber = 19; /// <summary>field number "prestige_dropped_total" field.</summary> public const int prestigedroppedtotalfieldnumber = 20; /// <summary>field number "pokemon_deployed" field.</summary> public const int pokemondeployedfieldnumber = 21; /// <summary>field number "pokemon_caught_by_type" field.</summary> public const int pokemoncaughtbytypefieldnumber = 22; /// <summary>field number "small_rattata_caught" field.</summary> public const int smallrattatacaughtfieldnumber = 23; private static readonly pb::messageparser<playerstats> _parser = new pb::messageparser<playerstats>(() => new playerstats()); private int battleattacktotal_; private int battleattackwon_; private int battledefendedwon_; private int battletrainingtotal_; private int battletrainingwon_; private int bigmagikarpcaught_; private int eggshatched_; private int evolutions_; private long experience_; private float kmwalked_; private int level_; private long nextlevelxp_; private int pokeballsthrown_; private pb::bytestring pokemoncaughtbytype_ = pb::bytestring.empty; private int pokemondeployed_; private int pokemonscaptured_; private int pokemonsencountered_; private int pokestopvisits_; private int prestigedroppedtotal_; private int prestigeraisedtotal_; private long prevlevelxp_; private int smallrattatacaught_; private int uniquepokedexentries_; public playerstats() { onconstruction(); } public playerstats(playerstats other) : this() { level_ = other.level_; experience_ = other.experience_; prevlevelxp_ = other.prevlevelxp_; nextlevelxp_ = other.nextlevelxp_; kmwalked_ = other.kmwalked_; pokemonsencountered_ = other.pokemonsencountered_; uniquepokedexentries_ = other.uniquepokedexentries_; pokemonscaptured_ = other.pokemonscaptured_; evolutions_ = other.evolutions_; pokestopvisits_ = other.pokestopvisits_; pokeballsthrown_ = other.pokeballsthrown_; eggshatched_ = other.eggshatched_; bigmagikarpcaught_ = other.bigmagikarpcaught_; battleattackwon_ = other.battleattackwon_; battleattacktotal_ = other.battleattacktotal_; battledefendedwon_ = other.battledefendedwon_; battletrainingwon_ = other.battletrainingwon_; battletrainingtotal_ = other.battletrainingtotal_; prestigeraisedtotal_ = other.prestigeraisedtotal_; prestigedroppedtotal_ = other.prestigedroppedtotal_; pokemondeployed_ = other.pokemondeployed_; pokemoncaughtbytype_ = other.pokemoncaughtbytype_; smallrattatacaught_ = other.smallrattatacaught_; } public static pb::messageparser<playerstats> parser { { return _parser; } } public static pbr::messagedescriptor descriptor { { return global::pokemongo.rocketapi.generatedcode.payloadsreflection.descriptor.messagetypes[14]; } } public int level { { return level_; } set { level_ = value; } } public long experience { { return experience_; } set { experience_ = value; } } public long prevlevelxp { { return prevlevelxp_; } set { prevlevelxp_ = value; } } public long nextlevelxp { { return nextlevelxp_; } set { nextlevelxp_ = value; } } public float kmwalked { { return kmwalked_; } set { kmwalked_ = value; } } public int pokemonsencountered { { return pokemonsencountered_; } set { pokemonsencountered_ = value; } } public int uniquepokedexentries { { return uniquepokedexentries_; } set { uniquepokedexentries_ = value; } } public int pokemonscaptured { { return pokemonscaptured_; } set { pokemonscaptured_ = value; } } public int evolutions { { return evolutions_; } set { evolutions_ = value; } } public int pokestopvisits { { return pokestopvisits_; } set { pokestopvisits_ = value; } } public int pokeballsthrown { { return pokeballsthrown_; } set { pokeballsthrown_ = value; } } public int eggshatched { { return eggshatched_; } set { eggshatched_ = value; } } public int bigmagikarpcaught { { return bigmagikarpcaught_; } set { bigmagikarpcaught_ = value; } } public int battleattackwon { { return battleattackwon_; } set { battleattackwon_ = value; } } public int battleattacktotal { { return battleattacktotal_; } set { battleattacktotal_ = value; } } public int battledefendedwon { { return battledefendedwon_; } set { battledefendedwon_ = value; } } public int battletrainingwon { { return battletrainingwon_; } set { battletrainingwon_ = value; } } public int battletrainingtotal { { return battletrainingtotal_; } set { battletrainingtotal_ = value; } } public int prestigeraisedtotal { { return prestigeraisedtotal_; } set { prestigeraisedtotal_ = value; } } public int prestigedroppedtotal { { return prestigedroppedtotal_; } set { prestigedroppedtotal_ = value; } } public int pokemondeployed { { return pokemondeployed_; } set { pokemondeployed_ = value; } } /// <summary> /// todo: repeated pokemontype ?? /// </summary> public pb::bytestring pokemoncaughtbytype { { return pokemoncaughtbytype_; } set { pokemoncaughtbytype_ = pb::protopreconditions.checknotnull(value, "value"); } } public int smallrattatacaught { { return smallrattatacaught_; } set { smallrattatacaught_ = value; } } pbr::messagedescriptor pb::imessage.descriptor { { return descriptor; } } public playerstats clone() { return new playerstats(this); } public bool equals(playerstats other) { if (referenceequals(other, null)) { return false; } if (referenceequals(other, this)) { return true; } if (level != other.level) return false; if (experience != other.experience) return false; if (prevlevelxp != other.prevlevelxp) return false; if (nextlevelxp != other.nextlevelxp) return false; if (kmwalked != other.kmwalked) return false; if (pokemonsencountered != other.pokemonsencountered) return false; if (uniquepokedexentries != other.uniquepokedexentries) return false; if (pokemonscaptured != other.pokemonscaptured) return false; if (evolutions != other.evolutions) return false; if (pokestopvisits != other.pokestopvisits) return false; if (pokeballsthrown != other.pokeballsthrown) return false; if (eggshatched != other.eggshatched) return false; if (bigmagikarpcaught != other.bigmagikarpcaught) return false; if (battleattackwon != other.battleattackwon) return false; if (battleattacktotal != other.battleattacktotal) return false; if (battledefendedwon != other.battledefendedwon) return false; if (battletrainingwon != other.battletrainingwon) return false; if (battletrainingtotal != other.battletrainingtotal) return false; if (prestigeraisedtotal != other.prestigeraisedtotal) return false; if (prestigedroppedtotal != other.prestigedroppedtotal) return false; if (pokemondeployed != other.pokemondeployed) return false; if (pokemoncaughtbytype != other.pokemoncaughtbytype) return false; if (smallrattatacaught != other.smallrattatacaught) return false; return true; } public void writeto(pb::codedoutputstream output) { if (level != 0) { output.writerawtag(8); output.writeint32(level); } if (experience != 0l) { output.writerawtag(16); output.writeint64(experience); } if (prevlevelxp != 0l) { output.writerawtag(24); output.writeint64(prevlevelxp); } if (nextlevelxp != 0l) { output.writerawtag(32); output.writeint64(nextlevelxp); } if (kmwalked != 0f) { output.writerawtag(45); output.writefloat(kmwalked); } if (pokemonsencountered != 0) { output.writerawtag(48); output.writeint32(pokemonsencountered); } if (uniquepokedexentries != 0) { output.writerawtag(56); output.writeint32(uniquepokedexentries); } if (pokemonscaptured != 0) { output.writerawtag(64); output.writeint32(pokemonscaptured); } if (evolutions != 0) { output.writerawtag(72); output.writeint32(evolutions); } if (pokestopvisits != 0) { output.writerawtag(80); output.writeint32(pokestopvisits); } if (pokeballsthrown != 0) { output.writerawtag(88); output.writeint32(pokeballsthrown); } if (eggshatched != 0) { output.writerawtag(96); output.writeint32(eggshatched); } if (bigmagikarpcaught != 0) { output.writerawtag(104); output.writeint32(bigmagikarpcaught); } if (battleattackwon != 0) { output.writerawtag(112); output.writeint32(battleattackwon); } if (battleattacktotal != 0) { output.writerawtag(120); output.writeint32(battleattacktotal); } if (battledefendedwon != 0) { output.writerawtag(128, 1); output.writeint32(battledefendedwon); } if (battletrainingwon != 0) { output.writerawtag(136, 1); output.writeint32(battletrainingwon); } if (battletrainingtotal != 0) { output.writerawtag(144, 1); output.writeint32(battletrainingtotal); } if (prestigeraisedtotal != 0) { output.writerawtag(152, 1); output.writeint32(prestigeraisedtotal); } if (prestigedroppedtotal != 0) { output.writerawtag(160, 1); output.writeint32(prestigedroppedtotal); } if (pokemondeployed != 0) { output.writerawtag(168, 1); output.writeint32(pokemondeployed); } if (pokemoncaughtbytype.length != 0) { output.writerawtag(178, 1); output.writebytes(pokemoncaughtbytype); } if (smallrattatacaught != 0) { output.writerawtag(184, 1); output.writeint32(smallrattatacaught); } } public int calculatesize() { var size = 0; if (level != 0) { size += 1 + pb::codedoutputstream.computeint32size(level); } if (experience != 0l) { size += 1 + pb::codedoutputstream.computeint64size(experience); } if (prevlevelxp != 0l) { size += 1 + pb::codedoutputstream.computeint64size(prevlevelxp); } if (nextlevelxp != 0l) { size += 1 + pb::codedoutputstream.computeint64size(nextlevelxp); } if (kmwalked != 0f) { size += 1 + 4; } if (pokemonsencountered != 0) { size += 1 + pb::codedoutputstream.computeint32size(pokemonsencountered); } if (uniquepokedexentries != 0) { size += 1 + pb::codedoutputstream.computeint32size(uniquepokedexentries); } if (pokemonscaptured != 0) { size += 1 + pb::codedoutputstream.computeint32size(pokemonscaptured); } if (evolutions != 0) { size += 1 + pb::codedoutputstream.computeint32size(evolutions); } if (pokestopvisits != 0) { size += 1 + pb::codedoutputstream.computeint32size(pokestopvisits); } if (pokeballsthrown != 0) { size += 1 + pb::codedoutputstream.computeint32size(pokeballsthrown); } if (eggshatched != 0) { size += 1 + pb::codedoutputstream.computeint32size(eggshatched); } if (bigmagikarpcaught != 0) { size += 1 + pb::codedoutputstream.computeint32size(bigmagikarpcaught); } if (battleattackwon != 0) { size += 1 + pb::codedoutputstream.computeint32size(battleattackwon); } if (battleattacktotal != 0) { size += 1 + pb::codedoutputstream.computeint32size(battleattacktotal); } if (battledefendedwon != 0) { size += 2 + pb::codedoutputstream.computeint32size(battledefendedwon); } if (battletrainingwon != 0) { size += 2 + pb::codedoutputstream.computeint32size(battletrainingwon); } if (battletrainingtotal != 0) { size += 2 + pb::codedoutputstream.computeint32size(battletrainingtotal); } if (prestigeraisedtotal != 0) { size += 2 + pb::codedoutputstream.computeint32size(prestigeraisedtotal); } if (prestigedroppedtotal != 0) { size += 2 + pb::codedoutputstream.computeint32size(prestigedroppedtotal); } if (pokemondeployed != 0) { size += 2 + pb::codedoutputstream.computeint32size(pokemondeployed); } if (pokemoncaughtbytype.length != 0) { size += 2 + pb::codedoutputstream.computebytessize(pokemoncaughtbytype); } if (smallrattatacaught != 0) { size += 2 + pb::codedoutputstream.computeint32size(smallrattatacaught); } return size; } public void mergefrom(playerstats other) { if (other == null) { return; } if (other.level != 0) { level = other.level; } if (other.experience != 0l) { experience = other.experience; } if (other.prevlevelxp != 0l) { prevlevelxp = other.prevlevelxp; } if (other.nextlevelxp != 0l) { nextlevelxp = other.nextlevelxp; } if (other.kmwalked != 0f) { kmwalked = other.kmwalked; } if (other.pokemonsencountered != 0) { pokemonsencountered = other.pokemonsencountered; } if (other.uniquepokedexentries != 0) { uniquepokedexentries = other.uniquepokedexentries; } if (other.pokemonscaptured != 0) { pokemonscaptured = other.pokemonscaptured; } if (other.evolutions != 0) { evolutions = other.evolutions; } if (other.pokestopvisits != 0) { pokestopvisits = other.pokestopvisits; } if (other.pokeballsthrown != 0) { pokeballsthrown = other.pokeballsthrown; } if (other.eggshatched != 0) { eggshatched = other.eggshatched; } if (other.bigmagikarpcaught != 0) { bigmagikarpcaught = other.bigmagikarpcaught; } if (other.battleattackwon != 0) { battleattackwon = other.battleattackwon; } if (other.battleattacktotal != 0) { battleattacktotal = other.battleattacktotal; } if (other.battledefendedwon != 0) { battledefendedwon = other.battledefendedwon; } if (other.battletrainingwon != 0) { battletrainingwon = other.battletrainingwon; } if (other.battletrainingtotal != 0) { battletrainingtotal = other.battletrainingtotal; } if (other.prestigeraisedtotal != 0) { prestigeraisedtotal = other.prestigeraisedtotal; } if (other.prestigedroppedtotal != 0) { prestigedroppedtotal = other.prestigedroppedtotal; } if (other.pokemondeployed != 0) { pokemondeployed = other.pokemondeployed; } if (other.pokemoncaughtbytype.length != 0) { pokemoncaughtbytype = other.pokemoncaughtbytype; } if (other.smallrattatacaught != 0) { smallrattatacaught = other.smallrattatacaught; } } public void mergefrom(pb::codedinputstream input) { uint tag; while ((tag = input.readtag()) != 0) { switch (tag) { default: input.skiplastfield(); break; case 8: { level = input.readint32(); break; } case 16: { experience = input.readint64(); break; } case 24: { prevlevelxp = input.readint64(); break; } case 32: { nextlevelxp = input.readint64(); break; } case 45: { kmwalked = input.readfloat(); break; } case 48: { pokemonsencountered = input.readint32(); break; } case 56: { uniquepokedexentries = input.readint32(); break; } case 64: { pokemonscaptured = input.readint32(); break; } case 72: { evolutions = input.readint32(); break; } case 80: { pokestopvisits = input.readint32(); break; } case 88: { pokeballsthrown = input.readint32(); break; } case 96: { eggshatched = input.readint32(); break; } case 104: { bigmagikarpcaught = input.readint32(); break; } case 112: { battleattackwon = input.readint32(); break; } case 120: { battleattacktotal = input.readint32(); break; } case 128: { battledefendedwon = input.readint32(); break; } case 136: { battletrainingwon = input.readint32(); break; } case 144: { battletrainingtotal = input.readint32(); break; } case 152: { prestigeraisedtotal = input.readint32(); break; } case 160: { prestigedroppedtotal = input.readint32(); break; } case 168: { pokemondeployed = input.readint32(); break; } case 178: { pokemoncaughtbytype = input.readbytes(); break; } case 184: { smallrattatacaught = input.readint32(); break; } } } } public override bool equals(object other) { return equals(other playerstats); } public override int gethashcode() { var hash = 1; if (level != 0) hash ^= level.gethashcode(); if (experience != 0l) hash ^= experience.gethashcode(); if (prevlevelxp != 0l) hash ^= prevlevelxp.gethashcode(); if (nextlevelxp != 0l) hash ^= nextlevelxp.gethashcode(); if (kmwalked != 0f) hash ^= kmwalked.gethashcode(); if (pokemonsencountered != 0) hash ^= pokemonsencountered.gethashcode(); if (uniquepokedexentries != 0) hash ^= uniquepokedexentries.gethashcode(); if (pokemonscaptured != 0) hash ^= pokemonscaptured.gethashcode(); if (evolutions != 0) hash ^= evolutions.gethashcode(); if (pokestopvisits != 0) hash ^= pokestopvisits.gethashcode(); if (pokeballsthrown != 0) hash ^= pokeballsthrown.gethashcode(); if (eggshatched != 0) hash ^= eggshatched.gethashcode(); if (bigmagikarpcaught != 0) hash ^= bigmagikarpcaught.gethashcode(); if (battleattackwon != 0) hash ^= battleattackwon.gethashcode(); if (battleattacktotal != 0) hash ^= battleattacktotal.gethashcode(); if (battledefendedwon != 0) hash ^= battledefendedwon.gethashcode(); if (battletrainingwon != 0) hash ^= battletrainingwon.gethashcode(); if (battletrainingtotal != 0) hash ^= battletrainingtotal.gethashcode(); if (prestigeraisedtotal != 0) hash ^= prestigeraisedtotal.gethashcode(); if (prestigedroppedtotal != 0) hash ^= prestigedroppedtotal.gethashcode(); if (pokemondeployed != 0) hash ^= pokemondeployed.gethashcode(); if (pokemoncaughtbytype.length != 0) hash ^= pokemoncaughtbytype.gethashcode(); if (smallrattatacaught != 0) hash ^= smallrattatacaught.gethashcode(); return hash; } partial void onconstruction(); public override string tostring() { return pb::jsonformatter.todiagnosticstring(this); } }
you can't see methods in auto , locals view. methods can have side effects when evaluated (properties ought have no side effects), prevent application end corrupted doesn't show them.
only properties , fields shown. can call methods in watch view.
Comments
Post a Comment