I am writing event code for Tridion R5 in C# but i am facing some challenges while implementing it in tridion. Is there any reference for Tridion R5 event system documentation or some sample code i can have?
You can write your 5.3 event system in C# as long as you make it Com-compatible (see https://msdn.microsoft.com/en-us/library/c3fd4a20.aspx).
Register it with regasm.
In your class, you can use the Tridion Interops to access the TOM.
From a very old thread on a very old (closed) forum...
If you do the following, Visual Studio will complete it for you:
public sealed class Events : ITCMEvents
- At this point Visual Studio will propose that you press TAB and it will create all the methods for you.
Be aware that events that happen to use MSXML2 objects will cause problems in .NET due to serialization issues between COM and .NET, unless you're running on .NET 1.1 (which I seriously doubt).