Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. public OBJECT ValidateFunction ( ObjectType, Data )
  2. {
  3.     try{
  4.         Object = Data.DeserializeFromBytes<ObjectType>();
  5.         return Object;
  6.     }catch(){
  7.         Corrputed Data
  8.         return null??;
  9.     }
  10. }
  11.  
  12.  
  13. PACKET_GUID gData = new PACKET_GUID();
  14. gData  =  ValidateFunction( PACKET_GUID, Data );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement