Initial scala Try c# implementation.