XNA c# , Unity c#,DirectX c#

Is the Syntax of XNA c# and Unity c# the same.Is it the same in DirectX

Yes. The syntax is the same. C# is C#. Thankfully. But your question is understandable, because Unity JavaScript is totally not the same as web javascript. Those languages are so terminologically screwed up. Poor them. But C# is C#.

Note that the graphics APIs are totally different, of course. An XNA expert is not automatically a Unity expert. Syntax is the same, yes. Graphics API is not.