I'm trying to code to create a network dataset using a single line feature class with minimal attributes I'm looking for a nice tutorial which can guide me through the process.I have already looked at the examples provided by esri (http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000466000000) but they are really complex and specific to the question, its really hard to get the concept from it.
Creating a network dataset programmatically IS a rather advanced process which requires a fairly good understanding of the ArcObjects and network dataset concepts.
There is a chance you miss some of the experience required. To get started with ArcObjects, consider going through the documentation and get more practice with the new ArcObjects book. To learn more about network datasets, read the ArcGIS Desktop Help.
Esri has also published a toolbox with the source code (StreetDataProcessing toolbox) that does create a network dataset from the source raw data which you might explore to get a better understanding. Feel free to play with the code and modify it to make it suit your needs.