bool ICodePackage.RegisterMethod(CodeData codeData, byte typeByteSignifier) { if (SerializerReadyCodeCollection.Keys.Contains(typeByteSignifier) && SerializerReadyCodeCollection[typeByteSignifier] != null) { return(false); } SerializerReadyCodeCollection[typeByteSignifier] = codeData; return(true); }
bool ICodePackage.TryGetMethod(byte typeByteSignifier, out CodeData data) { if (!SerializerReadyCodeCollection.Keys.Contains(typeByteSignifier) || SerializerReadyCodeCollection[typeByteSignifier] == null) { data = null; return(false); } data = SerializerReadyCodeCollection[typeByteSignifier]; return(true); }
public bool TryGetMethod(byte typeByteSignifier, out CodeData data) { return(((ICodePackage)this).TryGetMethod(typeByteSignifier, out data)); }
public bool RegisterMethod(CodeData codeData, ComputationMethodType type) { return(((ICodePackage)this).RegisterMethod(codeData, (byte)type)); }