I have python experience but I'm new to both cobra and c#. I've trying to write a small application that loads and parses an xml document.
I've written it in python and I've got it working in c# but get an error in cobra:
C#:
- Code: Select all
using System.Xml.Linq;
class Program
{
public static void Main()
{
XDocument ticket = XDocument.Load("ticket.xml");
...
Cobra:
- Code: Select all
use System.Xml.Linq
class Program
def main
xml = XDocument.load('ticket.xml')
...
Error:
- Code: Select all
(empty)(1): error: Cannot implement "Object" which is a class. Use "inherits" in
stead.
Compilation failed - 1 error, 0 warnings
Not running due to errors above.
What am I missing?
-Zach